Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created July 22, 2013 17:43
Show Gist options
  • Save vladdancer/6055913 to your computer and use it in GitHub Desktop.
Save vladdancer/6055913 to your computer and use it in GitHub Desktop.
Alter theme registry
/**
* Implements hook_theme_registry_alter().
*
* @param $theme_registry
* Drupal theme registry that could be changed.
*/
function azr_catalog_theme_registry_alter(&$theme_registry) {
if (($key = array_search('crumbs_preprocess_page', $theme_registry['page']['preprocess functions'])) !== NULL) {
unset($theme_registry['page']['preprocess functions'][$key]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment