function field_label_theme_registry_alter in Field Label 8
Implements hook_theme_registry_alter().
File
- ./
field_label.module, line 16 - Provides custom settings to format field labels.
Code
function field_label_theme_registry_alter(&$theme_registry) {
// Only override the field template if it comes from core. Allow
// theme overrides to take precedence.
if (strpos($theme_registry['field']['path'], 'core') !== 0) {
return;
}
$module_path = drupal_get_path('module', 'field_label');
$theme_registry['field']['path'] = $module_path . '/templates';
}