You are here

function path_breadcrumbs_theme_registry_alter in Path Breadcrumbs 7.3

Same name and namespace in other branches
  1. 7.2 path_breadcrumbs.module \path_breadcrumbs_theme_registry_alter()

Implements hook_theme_registry_alter().

File

./path_breadcrumbs.module, line 301

Code

function path_breadcrumbs_theme_registry_alter(&$theme_registry) {
  global $theme_key;
  $internal_render = variable_get('path_breadcrumbs_internal_render', 1);
  $themes = variable_get('path_breadcrumbs_internal_render_themes', array());
  if ($internal_render && (empty($themes) || in_array($theme_key, $themes))) {
    $theme_registry['breadcrumb']['theme path'] = drupal_get_path('module', 'path_breadcrumbs');
    $theme_registry['breadcrumb']['function'] = 'path_breadcrumbs_breadcrumb';
  }
}