Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / ajax_render_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/ajax_render_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/ajax_render_alter.twig
new file mode 100644 (file)
index 0000000..7d58b73
--- /dev/null
@@ -0,0 +1,7 @@
+/**
+ * Implements hook_ajax_render_alter().
+ */
+function {{ machine_name }}_ajax_render_alter(&$commands) {
+  // Inject any new status messages into the content area.
+  $commands[] = ajax_command_prepend('#block-system-main .content', theme('status_messages'));
+}