Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / dashboard_regions.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/dashboard_regions.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/dashboard_regions.twig
new file mode 100644 (file)
index 0000000..eb21073
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * Implements hook_dashboard_regions().
+ */
+function {{ machine_name }}_dashboard_regions() {
+  // Define a new dashboard region. Your module can also then define
+  // theme_mymodule_dashboard_region() as a theme wrapper function to control
+  // the region's appearance.
+  return array('mymodule_dashboard_region' => "My module's dashboard region");
+}