Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / boot.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/boot.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/boot.twig
new file mode 100644 (file)
index 0000000..bab9d8b
--- /dev/null
@@ -0,0 +1,8 @@
+/**
+ * Implements hook_boot().
+ */
+function {{ machine_name }}_boot() {
+  // We need user_access() in the shutdown function. Make sure it gets loaded.
+  drupal_load('module', 'user');
+  drupal_register_shutdown_function('devel_shutdown');
+}