function label_help_theme_registry_alter in Label Help 7
Implements hook_theme_registry_alter().
File
- ./
label_help.module, line 97 - This is the file description for the Label Help module.
Code
function label_help_theme_registry_alter(&$theme_registry) {
// Set our custom function for theming form_element_label.
// Duplicate the original theme hook, under a new name. This
// will allow us to 'wrap' the theme function without
// breaking it.
$theme_registry['form_element_label_x'] = $theme_registry['form_element_label'];
// Because we don't need to count on drupal to re-load this file
// we're going to only override the 'function' key
// and leave the 'theme path' etc. to the core setting
// to avoid potential problems down the road if
// core changes.
$theme_registry['form_element_label']['function'] = 'label_help_theme_form_element_label';
}