You are here

function flexslider_picture_theme_registry_alter in Picture 7.2

Same name and namespace in other branches
  1. 7 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'];
  $registry['flexslider_list_item']['file'] = 'flexslider_picture.theme.inc';
  $registry['flexslider_list_item']['theme_path'] = drupal_get_path('module', 'flexslider_picture') . '/theme';
  $default_processor = array_search('template_process_flexslider_list_item', $registry['flexslider_list_item']['process functions']);
  $registry['flexslider_list_item']['process functions'][(int) $default_processor] = 'template_process_flexslider_picture_list_item';
  $registry['flexslider_list_item']['includes'][] = $registry['flexslider_list_item']['theme_path'] . '/' . $registry['flexslider_list_item']['file'];
}