1 views_ui.module | views_ui_preprocess_views_view(&$variables) |
Theme preprocess for views-view.tpl.php.
File
- core/
modules/ views_ui/ views_ui.module, line 438 - Provide structure for the administrative interface to Views.
Code
function views_ui_preprocess_views_view(&$variables) {
$view = $variables['view'];
if (!empty($view->views_ui_context) && module_exists('contextual')) {
$view->hide_admin_links = TRUE;
foreach (array('title', 'header', 'exposed', 'rows', 'pager', 'more', 'footer', 'empty', 'attachment_after', 'attachment_before') as $section) {
if (!empty($variables[$section])) {
$variables[$section] = array(
'#theme' => 'views_ui_view_preview_section',
'#view' => $view,
'#section' => $section,
'#content' => is_array($variables[$section]) ? backdrop_render($variables[$section]) : $variables[$section],
'#theme_wrappers' => array('views_container'),
'#attributes' => array('class' => 'contextual-links-region'),
);
$variables[$section] = backdrop_render($variables[$section]);
}
}
}
}