Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / field_attach_create_bundle.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/field_attach_create_bundle.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/field_attach_create_bundle.twig
new file mode 100644 (file)
index 0000000..85d2731
--- /dev/null
@@ -0,0 +1,8 @@
+/**
+ * Implements hook_field_attach_create_bundle().
+ */
+function {{ machine_name }}_field_attach_create_bundle($entity_type, $bundle) {
+  // When a new bundle is created, the menu needs to be rebuilt to add the
+  // Field UI menu item tabs.
+  variable_set('menu_rebuild_needed', TRUE);
+}