You are here

function flexslider_picture_theme_registry_alter in Picture 7

Same name and namespace in other branches
  1. 7.2 flexslider_picture/flexslider_picture.module \flexslider_picture_theme_registry_alter()

Implements hook_theme_registry_alter().

File

flexslider_picture/flexslider_picture.module, line 11
Picture formatter with flexslider support.

Code

function flexslider_picture_theme_registry_alter(&$registry) {
  $registry['flexslider_list']['file'] = 'flexslider_picture.theme.inc';
  $registry['flexslider_list']['theme_path'] = drupal_get_path('module', 'flexslider_picture') . '/theme';
  $registry['flexslider_list']['function'] = 'theme_flexslider_picture_list';
  $default_processor = array_search('template_preprocess_flexslider_list', $registry['flexslider_list']['preprocess functions']);
  $registry['flexslider_list']['preprocess functions'][(int) $default_processor] = 'template_preprocess_flexslider_picture_list';
  $registry['flexslider_list']['includes'][] = $registry['flexslider_list']['theme_path'] . '/' . $registry['flexslider_list']['file'];
}