You are here

function uikit_views_theme_registry_alter in UIkit Components 8

Same name and namespace in other branches
  1. 8.3 uikit_views/uikit_views.module \uikit_views_theme_registry_alter()
  2. 8.2 uikit_views/uikit_views.module \uikit_views_theme_registry_alter()

Implements hook_theme_registry_alter().

File

uikit_views/uikit_views.module, line 64
UIkit Views.

Code

function uikit_views_theme_registry_alter(&$theme_registry) {
  $module_path = drupal_get_path('module', 'uikit_views');

  // Alter the path so we can put templates into separate directories.
  $theme_registry['uikit_view_grid']['path'] = $module_path . '/templates/views';
  $theme_registry['uikit_view_list']['path'] = $module_path . '/templates/views';
  $theme_registry['uikit_view_slideshow']['path'] = $module_path . '/templates/views';
  $theme_registry['uikit_view_table']['path'] = $module_path . '/templates/views';
}