Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / includes / site_install.inc
diff --git a/vendor/drush/drush/includes/site_install.inc b/vendor/drush/drush/includes/site_install.inc
new file mode 100644 (file)
index 0000000..4e15f4c
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * A sneaky implementation of hook_module_implements_alter().
+ *
+ * site:install includes this file in order to not run any cron hooks during install.
+ * That's a bad idea.
+ *
+ * @param $implementations
+ * @param $hook
+ */
+function system_module_implements_alter(&$implementations, $hook) {
+  if ($hook == 'cron') {
+    $implementations = [];
+  }
+}