function uikit_views_theme in UIkit Components 7.2
Same name and namespace in other branches
- 8.3 uikit_views/uikit_views.module \uikit_views_theme()
- 8 uikit_views/uikit_views.module \uikit_views_theme()
- 8.2 uikit_views/uikit_views.module \uikit_views_theme()
- 7.3 uikit_views/uikit_views.module \uikit_views_theme()
Implements hook_theme().
File
- uikit_views/
uikit_views.module, line 55 - UIkit Views.
Code
function uikit_views_theme($existing, $type, $theme, $path) {
$uikit_views = drupal_get_path('module', 'uikit_views');
$hooks['uikit_view_accordion'] = array(
'variables' => array(
'view' => NULL,
'options' => NULL,
'rows' => NULL,
'title' => NULL,
),
'template' => 'templates/uikit-view-accordion',
'file' => 'templates/uikit_views.theme.inc',
'pattern' => 'uikit_view_accordion__',
'preprocess functions' => array(
'template_preprocess_uikit_view_accordion',
),
);
$hooks['uikit_view_grid'] = array(
'variables' => array(
'view' => NULL,
'options' => NULL,
'rows' => NULL,
'title' => NULL,
),
'path' => $uikit_views . '/templates',
'template' => 'uikit-view-grid',
'file' => 'uikit_views.theme.inc',
'pattern' => 'uikit_view_grid__',
'preprocess functions' => array(
'template_preprocess_uikit_view_grid',
),
);
$hooks['uikit_view_list'] = array(
'variables' => array(
'view' => NULL,
'options' => NULL,
'rows' => NULL,
'title' => NULL,
),
'template' => 'templates/uikit-view-list',
'file' => 'templates/uikit_views.theme.inc',
'pattern' => 'uikit_view_list__',
'preprocess functions' => array(
'template_preprocess_uikit_view_list',
),
);
$hooks['uikit_view_table'] = array(
'variables' => array(
'view' => NULL,
'options' => NULL,
'rows' => NULL,
'title' => NULL,
),
'path' => $uikit_views . '/templates',
'template' => 'uikit-view-table',
'file' => 'uikit_views.theme.inc',
'pattern' => 'uikit_view_table__',
'preprocess functions' => array(
'template_preprocess_uikit_view_table',
),
);
return $hooks;
}