Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / admin_paths_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/admin_paths_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/admin_paths_alter.twig
new file mode 100644 (file)
index 0000000..a66d25b
--- /dev/null
@@ -0,0 +1,10 @@
+/**
+ * Implements hook_admin_paths_alter().
+ */
+function {{ machine_name }}_admin_paths_alter(&$paths) {
+  // Treat all user pages as administrative.
+  $paths['user'] = TRUE;
+  $paths['user/*'] = TRUE;
+  // Treat the forum topic node form as a non-administrative page.
+  $paths['node/add/forum'] = FALSE;
+}