function me_theme_registry_alter in me aliases 8
Same name and namespace in other branches
- 6.2 me.module \me_theme_registry_alter()
- 6 me.module \me_theme_registry_alter()
- 7 me.module \me_theme_registry_alter()
Implements hook_theme_registry_alter().
There is a different registry version for each theme, and this function will be called for each of them.
File
- ./
me.module, line 37 - 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'])) {
// remember the original function
$theme_registry['menu_item_link']['me_original_function'] = $theme_registry['menu_item_link']['function'];
$theme_registry['menu_item_link']['function'] = 'me_theme_menu_item_link';
}
}