Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / menu.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/menu.twig
new file mode 100644 (file)
index 0000000..871bcfb
--- /dev/null
@@ -0,0 +1,19 @@
+/**
+ * Implements hook_menu().
+ */
+function {{ machine_name }}_menu() {
+  $items['example'] = array(
+    'title' => 'Example Page',
+    'page callback' => 'example_page',
+    'access arguments' => array('access content'),
+    'type' => MENU_SUGGESTED_ITEM,
+  );
+  $items['example/feed'] = array(
+    'title' => 'Example RSS feed',
+    'page callback' => 'example_feed',
+    'access arguments' => array('access content'),
+    'type' => MENU_CALLBACK,
+  );
+
+  return $items;
+}