You are here

function fences_theme_registry_alter in Fences 8.2

Same name and namespace in other branches
  1. 7.2 fences.module \fences_theme_registry_alter()
  2. 7 fences.module \fences_theme_registry_alter()

Implements hook_theme_registry_alter().

File

./fences.module, line 16
Alter wrapping markup of fields.

Code

function fences_theme_registry_alter(&$theme_registry) {

  // Only override the field template if it came from core. Allow themes that
  // have overridden the field template to take precedence.
  if (strpos($theme_registry['field']['path'], 'core') !== 0) {
    return;
  }
  $module_path = drupal_get_path('module', 'fences');
  $theme_registry['field']['path'] = $module_path;
}