X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Ftheme_registry_alter.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Ftheme_registry_alter.twig;h=cdbb17e9f8318212c7323ab8807293e9f908adbf;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme_registry_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme_registry_alter.twig new file mode 100644 index 000000000..cdbb17e9f --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/theme_registry_alter.twig @@ -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]); + } + } +}