function me_theme_registry_alter in me aliases 6
Same name and namespace in other branches
- 8 me.module \me_theme_registry_alter()
- 6.2 me.module \me_theme_registry_alter()
- 7 me.module \me_theme_registry_alter()
Implementation of hook_theme_registry_alter().
File
- ./
me.module, line 34 - Provides 'me' aliases to allow users to enter 'me' in common paths instead of their user id.
Code
function me_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['menu_item_link']['function'])) {
variable_set('me_theme_menu_item_link', $theme_registry['menu_item_link']['function']);
$theme_registry['menu_item_link']['function'] = 'me_theme_menu_item_link';
}
}