Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / theme_registry_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_registry_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme_registry_alter.twig
new file mode 100644 (file)
index 0000000..cdbb17e
--- /dev/null
@@ -0,0 +1,11 @@
+/**
+ * Implements hook_theme_registry_alter().
+ */
+function {{ machine_name }}_theme_registry_alter(&$theme_registry) {
+  // Kill the next/previous forum topic navigation links.
+  foreach ($theme_registry['forum_topic_navigation']['preprocess functions'] as $key => $value) {
+    if ($value == 'template_preprocess_forum_topic_navigation') {
+      unset($theme_registry['forum_topic_navigation']['preprocess functions'][$key]);
+    }
+  }
+}