2012-09-30 21:53:21 +00:00
< ? php
/**
* @ file
* Preprocessors and theme functions for the Views UI .
*/
Issue #1825952 by Fabianx, joelpittet, bdragon, heddn, chx, xjm, pwolanin, mikey_p, ti2m, bfr, dags, cilefen, scor, mgifford: Turn on twig autoescape by default
2014-07-18 09:05:22 +00:00
use Drupal\Component\Utility\SafeMarkup ;
2014-03-31 17:37:55 +00:00
use Drupal\Core\Render\Element ;
2012-09-30 21:53:21 +00:00
use Drupal\Core\Template\Attribute ;
2013-05-24 17:18:31 +00:00
/**
* Prepares variables for Views UI display tab setting templates .
*
* Default template : views - ui - display - tab - setting . html . twig .
*
* @ param array $variables
* An associative array containing :
* - link : The setting ' s primary link .
* - settings_links : An array of links for this setting .
* - defaulted : A boolean indicating the setting is in its default state .
* - overridden : A boolean indicating the setting has been overridden from
* the default .
* - description : The setting ' s description .
* - description_separator : A boolean indicating a separator colon should be
* appended to the setting ' s description .
*/
2012-09-30 21:53:21 +00:00
function template_preprocess_views_ui_display_tab_setting ( & $variables ) {
2013-05-24 17:18:31 +00:00
// Add default class attributes.
$variables [ 'attributes' ][ 'class' ][] = 'views-display-setting' ;
$variables [ 'attributes' ][ 'class' ][] = 'clearfix' ;
// Put the primary link to the left side.
2012-09-30 21:53:21 +00:00
array_unshift ( $variables [ 'settings_links' ], $variables [ 'link' ]);
2013-05-15 18:59:43 +00:00
$variables [ 'attributes' ][ 'class' ][] = 'views-ui-display-tab-setting' ;
2012-09-30 21:53:21 +00:00
if ( ! empty ( $variables [ 'defaulted' ])) {
$variables [ 'attributes' ][ 'class' ][] = 'defaulted' ;
}
if ( ! empty ( $variables [ 'overridden' ])) {
$variables [ 'attributes' ][ 'class' ][] = 'overridden' ;
2013-05-24 17:18:31 +00:00
$variables [ 'attributes' ][ 'title' ][] = t ( 'Overridden' );
2012-09-30 21:53:21 +00:00
}
// Append a colon to the description, if requested.
if ( $variables [ 'description' ] && $variables [ 'description_separator' ]) {
$variables [ 'description' ] .= t ( ':' );
}
}
2013-05-24 17:15:53 +00:00
/**
* Prepares variables for Views UI display tab bucket templates .
*
* Default template : views - ui - display - tab - bucket . html . twig .
*
* @ param array $variables
* An associative array containing :
* - element : An associative array containing the properties of the element .
* Properties used : #name, #overridden, #children, #title, #actions.
*/
2012-09-30 21:53:21 +00:00
function template_preprocess_views_ui_display_tab_bucket ( & $variables ) {
$element = $variables [ 'element' ];
2013-05-15 18:59:43 +00:00
$variables [ 'attributes' ][ 'class' ][] = 'views-ui-display-tab-bucket' ;
2012-09-30 21:53:21 +00:00
if ( ! empty ( $element [ '#name' ])) {
$variables [ 'attributes' ][ 'class' ][] = drupal_html_class ( $element [ '#name' ]);
}
if ( ! empty ( $element [ '#overridden' ])) {
$variables [ 'attributes' ][ 'class' ][] = 'overridden' ;
2013-05-24 17:15:53 +00:00
$variables [ 'attributes' ][ 'title' ][] = t ( 'Overridden' );
2012-09-30 21:53:21 +00:00
}
$variables [ 'content' ] = $element [ '#children' ];
$variables [ 'title' ] = $element [ '#title' ];
2013-05-24 17:15:53 +00:00
$variables [ 'actions' ] = ! empty ( $element [ '#actions' ]) ? $element [ '#actions' ] : array ();
2012-09-30 21:53:21 +00:00
}
/**
2013-07-20 00:23:33 +00:00
* Prepares variables for Views UI View info templates .
*
* Default template : views - ui - view - info . html . twig .
*
* @ param array $variables
* An associative array containing :
* - view : The View object .
2012-09-30 21:53:21 +00:00
*/
function template_preprocess_views_ui_view_info ( & $variables ) {
2013-04-03 19:57:49 +00:00
$variables [ 'title' ] = $variables [ 'view' ] -> label ();
Issue #1825952 by Fabianx, joelpittet, bdragon, heddn, chx, xjm, pwolanin, mikey_p, ti2m, bfr, dags, cilefen, scor, mgifford: Turn on twig autoescape by default
2014-07-18 09:05:22 +00:00
if ( empty ( $variables [ 'displays' ])) {
$displays = t ( 'None' );
}
else {
$displays = format_plural ( count ( $variables [ 'displays' ]), 'Display' , 'Displays' ) . ': <em>' ;
$separator = '' ;
foreach ( $variables [ 'displays' ] as $displays_item ) {
$displays .= $separator . SafeMarkup :: escape ( $displays_item );
$separator = ', ' ;
}
$displays = SafeMarkup :: set ( $displays . '</em>' );
}
$variables [ 'displays' ] = $displays ;
2012-09-30 21:53:21 +00:00
}
/**
* Theme the build group filter form .
*/
function theme_views_ui_build_group_filter_form ( $variables ) {
$form = $variables [ 'form' ];
$more = drupal_render ( $form [ 'more' ]);
$output = drupal_render ( $form [ 'form_description' ]);
$output .= drupal_render ( $form [ 'expose_button' ]);
$output .= drupal_render ( $form [ 'group_button' ]);
if ( isset ( $form [ 'required' ])) {
$output .= drupal_render ( $form [ 'required' ]);
}
$output .= drupal_render ( $form [ 'operator' ]);
$output .= drupal_render ( $form [ 'value' ]);
$output .= '<div class="views-left-40">' ;
$output .= drupal_render ( $form [ 'optional' ]);
$output .= drupal_render ( $form [ 'remember' ]);
$output .= '</div>' ;
$output .= '<div class="views-right-60">' ;
$output .= drupal_render ( $form [ 'widget' ]);
$output .= drupal_render ( $form [ 'label' ]);
$output .= drupal_render ( $form [ 'description' ]);
$output .= '</div>' ;
$header = array (
t ( 'Default' ),
t ( 'Weight' ),
t ( 'Label' ),
t ( 'Operator' ),
t ( 'Value' ),
t ( 'Operations' ),
);
$form [ 'default_group' ] = form_process_radios ( $form [ 'default_group' ]);
$form [ 'default_group_multiple' ] = form_process_checkboxes ( $form [ 'default_group_multiple' ]);
$form [ 'default_group' ][ 'All' ][ '#title' ] = '' ;
hide ( $form [ 'default_group_multiple' ][ 'All' ]);
$rows [] = array (
drupal_render ( $form [ 'default_group' ][ 'All' ]),
'' ,
array (
2013-09-16 03:58:06 +00:00
'data' => \Drupal :: config ( 'views.settings' ) -> get ( 'ui.exposed_filter_any_label' ) == 'old_any' ? t ( '<Any>' ) : t ( '- Any -' ),
2012-09-30 21:53:21 +00:00
'colspan' => 4 ,
'class' => array ( 'class' => 'any-default-radios-row' ),
),
);
2014-03-31 17:37:55 +00:00
foreach ( Element :: children ( $form [ 'group_items' ]) as $group_id ) {
2012-09-30 21:53:21 +00:00
$form [ 'group_items' ][ $group_id ][ 'value' ][ '#title' ] = '' ;
$data = array (
'default' => drupal_render ( $form [ 'default_group' ][ $group_id ]) . drupal_render ( $form [ 'default_group_multiple' ][ $group_id ]),
'weight' => drupal_render ( $form [ 'group_items' ][ $group_id ][ 'weight' ]),
'title' => drupal_render ( $form [ 'group_items' ][ $group_id ][ 'title' ]),
'operator' => drupal_render ( $form [ 'group_items' ][ $group_id ][ 'operator' ]),
'value' => drupal_render ( $form [ 'group_items' ][ $group_id ][ 'value' ]),
'remove' => drupal_render ( $form [ 'group_items' ][ $group_id ][ 'remove' ]) . l ( '<span>' . t ( 'Remove' ) . '</span>' , 'javascript:void()' , array ( 'attributes' => array ( 'id' => 'views-remove-link-' . $group_id , 'class' => array ( 'views-hidden' , 'views-button-remove' , 'views-groups-remove-link' , 'views-remove-link' ), 'alt' => t ( 'Remove this item' ), 'title' => t ( 'Remove this item' )), 'html' => true )),
);
$rows [] = array ( 'data' => $data , 'id' => 'views-row-' . $group_id , 'class' => array ( 'draggable' ));
}
2013-06-29 14:17:05 +00:00
$table = array (
2014-03-12 15:46:33 +00:00
'#type' => 'table' ,
2013-06-29 14:17:05 +00:00
'#header' => $header ,
'#rows' => $rows ,
'#attributes' => array (
'class' => array ( 'views-filter-groups' ),
'id' => 'views-filter-groups' ,
),
2013-12-20 12:05:47 +00:00
'#tabledrag' => array (
array (
'action' => 'order' ,
'relationship' => 'sibling' ,
'group' => 'weight' ,
)
),
2013-06-29 14:17:05 +00:00
);
2012-09-30 21:53:21 +00:00
$render_form = drupal_render_children ( $form );
2013-06-29 14:17:05 +00:00
return $output . $render_form . drupal_render ( $table ) . drupal_render ( $form [ 'add_group' ]) . $more ;
2012-09-30 21:53:21 +00:00
}
/**
* Turn the rearrange form into a proper table
*/
2013-07-13 10:29:57 +00:00
function theme_views_ui_rearrange_filter_form ( & $variables ) {
$form = $variables [ 'form' ];
2012-09-30 21:53:21 +00:00
$rows = $ungroupable_rows = array ();
// Enable grouping only if > 1 group.
$grouping = count ( array_keys ( $form [ '#group_options' ])) > 1 ;
foreach ( $form [ '#group_renders' ] as $group_id => $contents ) {
// Header row for the group.
if ( $group_id !== 'ungroupable' ) {
// Set up tabledrag so that it changes the group dropdown when rows are
// dragged between groups.
2013-12-20 12:05:47 +00:00
$options = array (
'table_id' => 'views-rearrange-filters' ,
'action' => 'match' ,
'relationship' => 'sibling' ,
'group' => 'views-group-select' ,
'subgroup' => 'views-group-select-' . $group_id ,
);
drupal_attach_tabledrag ( $form [ 'override' ], $options );
2012-09-30 21:53:21 +00:00
// Title row, spanning all columns.
$row = array ();
// Add a cell to the first row, containing the group operator.
$row [] = array ( 'class' => array ( 'group' , 'group-operator' , 'container-inline' ), 'data' => drupal_render ( $form [ 'filter_groups' ][ 'groups' ][ $group_id ]), 'rowspan' => max ( array ( 2 , count ( $contents ) + 1 )));
// Title.
$row [] = array ( 'class' => array ( 'group' , 'group-title' ), 'data' => '<span>' . $form [ '#group_options' ][ $group_id ] . '</span>' , 'colspan' => 4 );
$rows [] = array ( 'class' => array ( 'views-group-title' ), 'data' => $row , 'id' => 'views-group-title-' . $group_id );
// Row which will only appear if the group has nothing in it.
$row = array ();
$class = 'group-' . ( count ( $contents ) ? 'populated' : 'empty' );
$instructions = '<span>' . t ( 'No filters have been added.' ) . '</span> <span class="js-only">' . t ( 'Drag to add filters.' ) . '</span>' ;
// When JavaScript is enabled, the button for removing the group (if it's
// present) should be hidden, since it will be replaced by a link on the
// client side.
if ( ! empty ( $form [ 'remove_groups' ][ $group_id ][ '#type' ]) && $form [ 'remove_groups' ][ $group_id ][ '#type' ] == 'submit' ) {
$form [ 'remove_groups' ][ $group_id ][ '#attributes' ][ 'class' ][] = 'js-hide' ;
}
$row [] = array ( 'colspan' => 5 , 'data' => $instructions . drupal_render ( $form [ 'remove_groups' ][ $group_id ]));
$rows [] = array ( 'class' => array ( " group-message " , " group- $group_id -message " , $class ), 'data' => $row , 'id' => 'views-group-' . $group_id );
}
foreach ( $contents as $id ) {
if ( isset ( $form [ 'filters' ][ $id ][ 'name' ])) {
$row = array ();
$row [] = drupal_render ( $form [ 'filters' ][ $id ][ 'name' ]);
$form [ 'filters' ][ $id ][ 'weight' ][ '#attributes' ][ 'class' ] = array ( 'weight' );
$row [] = drupal_render ( $form [ 'filters' ][ $id ][ 'weight' ]);
$form [ 'filters' ][ $id ][ 'group' ][ '#attributes' ][ 'class' ] = array ( 'views-group-select views-group-select-' . $group_id );
$row [] = drupal_render ( $form [ 'filters' ][ $id ][ 'group' ]);
$form [ 'filters' ][ $id ][ 'removed' ][ '#attributes' ][ 'class' ][] = 'js-hide' ;
2013-05-12 22:40:22 +00:00
$row [] = drupal_render ( $form [ 'filters' ][ $id ][ 'removed' ]) . l ( '<span>' . t ( 'Remove' ) . '</span>' , '' , array ( 'attributes' => array ( 'id' => 'views-remove-link-' . $id , 'class' => array ( 'views-hidden' , 'views-button-remove' , 'views-groups-remove-link' , 'views-remove-link' ), 'alt' => t ( 'Remove this item' ), 'title' => t ( 'Remove this item' )), 'html' => TRUE ));
2012-09-30 21:53:21 +00:00
$row = array ( 'data' => $row , 'class' => array ( 'draggable' ), 'id' => 'views-row-' . $id );
if ( $group_id !== 'ungroupable' ) {
$rows [] = $row ;
}
else {
$ungroupable_rows [] = $row ;
}
}
}
}
if ( empty ( $rows )) {
$rows [] = array ( array ( 'data' => t ( 'No fields available.' ), 'colspan' => '2' ));
}
$output = drupal_render ( $form [ 'override' ]);
2013-10-16 19:18:57 +00:00
$output .= '<div class="scroll" data-drupal-views-scroll>' ;
2012-09-30 21:53:21 +00:00
if ( $grouping ) {
$output .= drupal_render ( $form [ 'filter_groups' ][ 'operator' ]);
}
else {
$form [ 'filter_groups' ][ 'groups' ][ 0 ][ '#title' ] = t ( 'Operator' );
$output .= drupal_render ( $form [ 'filter_groups' ][ 'groups' ][ 0 ]);
}
if ( ! empty ( $ungroupable_rows )) {
$header = array ( t ( 'Ungroupable filters' ), t ( 'Weight' ), array ( 'class' => array ( 'views-hide-label' ), 'data' => t ( 'Group' )), array ( 'class' => array ( 'views-hide-label' ), 'data' => t ( 'Remove' )));
2013-06-29 14:17:05 +00:00
$table = array (
2014-03-12 15:46:33 +00:00
'#type' => 'table' ,
2013-06-29 14:17:05 +00:00
'#header' => $header ,
'#rows' => $ungroupable_rows ,
'#attributes' => array (
'id' => 'views-rearrange-filters-ungroupable' ,
'class' => array ( 'arrange' ),
),
2013-12-20 12:05:47 +00:00
'#tabledrag' => array (
array (
'action' => 'order' ,
'relationship' => 'sibling' ,
'group' => 'weight' ,
)
),
2013-06-29 14:17:05 +00:00
);
$output .= drupal_render ( $table );
2012-09-30 21:53:21 +00:00
}
// Set up tabledrag so that the weights are changed when rows are dragged.
2013-06-29 14:17:05 +00:00
$table = array (
2014-03-12 15:46:33 +00:00
'#type' => 'table' ,
2013-06-29 14:17:05 +00:00
'#rows' => $rows ,
'#attributes' => array (
'id' => 'views-rearrange-filters' ,
'class' => array ( 'arrange' ),
),
2013-12-20 12:05:47 +00:00
'#tabledrag' => array (
array (
'action' => 'order' ,
'relationship' => 'sibling' ,
'group' => 'weight' ,
)
),
2013-06-29 14:17:05 +00:00
);
$output .= drupal_render ( $table );
2012-09-30 21:53:21 +00:00
$output .= '</div>' ;
// When JavaScript is enabled, the button for adding a new group should be
// hidden, since it will be replaced by a link on the client side.
2013-10-16 19:18:57 +00:00
$form [ 'actions' ][ 'add_group' ][ '#attributes' ][ 'class' ][] = 'js-hide' ;
2012-09-30 21:53:21 +00:00
// Render the rest of the form and return.
$output .= drupal_render_children ( $form );
return $output ;
}
/**
2013-08-12 07:22:49 +00:00
* Prepares variables for style plugin table templates .
*
* Default template : views - ui - style - plugin - table . html . twig .
*
* @ param array $variables
* An associative array containing :
* - form : A render element representing the form .
2014-04-24 13:06:35 +00:00
*/
2013-08-12 07:22:49 +00:00
function template_preprocess_views_ui_style_plugin_table ( & $variables ) {
2012-09-30 21:53:21 +00:00
$form = $variables [ 'form' ];
$header = array (
t ( 'Field' ),
t ( 'Column' ),
t ( 'Align' ),
t ( 'Separator' ),
array (
'data' => t ( 'Sortable' ),
'align' => 'center' ,
),
array (
'data' => t ( 'Default order' ),
'align' => 'center' ,
),
array (
'data' => t ( 'Default sort' ),
'align' => 'center' ,
),
array (
'data' => t ( 'Hide empty column' ),
'align' => 'center' ,
),
2012-10-06 23:52:06 +00:00
array (
'data' => t ( 'Responsive' ),
'align' => 'center' ,
),
2012-09-30 21:53:21 +00:00
);
$rows = array ();
2014-03-31 17:37:55 +00:00
foreach ( Element :: children ( $form [ 'columns' ]) as $id ) {
2012-09-30 21:53:21 +00:00
$row = array ();
2013-08-12 07:22:49 +00:00
$row [][ 'data' ] = $form [ 'info' ][ $id ][ 'name' ];
$row [][ 'data' ] = $form [ 'columns' ][ $id ];
$row [][ 'data' ] = $form [ 'info' ][ $id ][ 'align' ];
$row [][ 'data' ] = $form [ 'info' ][ $id ][ 'separator' ];
2012-09-30 21:53:21 +00:00
if ( ! empty ( $form [ 'info' ][ $id ][ 'sortable' ])) {
$row [] = array (
2013-08-12 07:22:49 +00:00
'data' => $form [ 'info' ][ $id ][ 'sortable' ],
2012-09-30 21:53:21 +00:00
'align' => 'center' ,
);
$row [] = array (
2013-08-12 07:22:49 +00:00
'data' => $form [ 'info' ][ $id ][ 'default_sort_order' ],
2012-09-30 21:53:21 +00:00
'align' => 'center' ,
);
$row [] = array (
2013-08-12 07:22:49 +00:00
'data' => $form [ 'default' ][ $id ],
2012-09-30 21:53:21 +00:00
'align' => 'center' ,
);
}
else {
$row [] = '' ;
$row [] = '' ;
$row [] = '' ;
}
$row [] = array (
2013-08-12 07:22:49 +00:00
'data' => $form [ 'info' ][ $id ][ 'empty_column' ],
2012-09-30 21:53:21 +00:00
'align' => 'center' ,
);
2012-10-06 23:52:06 +00:00
$row [] = array (
2013-08-12 07:22:49 +00:00
'data' => $form [ 'info' ][ $id ][ 'responsive' ],
2012-10-06 23:52:06 +00:00
'align' => 'center' ,
);
2012-09-30 21:53:21 +00:00
$rows [] = $row ;
}
// Add the special 'None' row.
2013-08-12 07:22:49 +00:00
$rows [] = array ( array ( 'data' => t ( 'None' ), 'colspan' => 6 ), array ( 'align' => 'center' , 'data' => $form [ 'default' ][ - 1 ]), array ( 'colspan' => 2 ));
2012-09-30 21:53:21 +00:00
2013-08-12 07:22:49 +00:00
// Unset elements from the form array that are used to build the table so that
// they are not rendered twice.
unset ( $form [ 'default' ]);
unset ( $form [ 'info' ]);
unset ( $form [ 'columns' ]);
$variables [ 'table' ] = array (
'#type' => 'table' ,
'#theme' => 'table__views_ui_style_plugin_table' ,
2013-06-29 14:17:05 +00:00
'#header' => $header ,
'#rows' => $rows ,
);
2013-08-12 07:22:49 +00:00
$variables [ 'form' ] = $form ;
2012-09-30 21:53:21 +00:00
}
/**
2013-06-27 09:26:32 +00:00
* Prepares variables for views UI view preview section templates .
*
* Default template : views - ui - view - preview - section . html . twig .
*
* @ param array $variables
* An associative array containing :
* - view : The view object .
* - section : The section name of a View ( e . g . title , rows or pager ) .
2012-09-30 21:53:21 +00:00
*/
2013-07-13 10:29:57 +00:00
function template_preprocess_views_ui_view_preview_section ( & $variables ) {
switch ( $variables [ 'section' ]) {
2012-09-30 21:53:21 +00:00
case 'title' :
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Title' );
$links = views_ui_view_preview_section_display_category_links ( $variables [ 'view' ], 'title' , $variables [ 'title' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'header' :
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Header' );
$links = views_ui_view_preview_section_handler_links ( $variables [ 'view' ], $variables [ 'section' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'empty' :
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'No results behavior' );
$links = views_ui_view_preview_section_handler_links ( $variables [ 'view' ], $variables [ 'section' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'exposed' :
// @todo Sorts can be exposed too, so we may need a better title.
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Exposed Filters' );
$links = views_ui_view_preview_section_display_category_links ( $variables [ 'view' ], 'exposed_form_options' , $variables [ 'title' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'rows' :
// @todo The title needs to depend on what is being viewed.
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Content' );
$links = views_ui_view_preview_section_rows_links ( $variables [ 'view' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'pager' :
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Pager' );
$links = views_ui_view_preview_section_display_category_links ( $variables [ 'view' ], 'pager_options' , $variables [ 'title' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'more' :
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'More' );
$links = views_ui_view_preview_section_display_category_links ( $variables [ 'view' ], 'use_more' , $variables [ 'title' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'footer' :
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Footer' );
$links = views_ui_view_preview_section_handler_links ( $variables [ 'view' ], $variables [ 'section' ]);
2012-09-30 21:53:21 +00:00
break ;
case 'attachment_before' :
// @todo: Add links to the attachment configuration page.
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Attachment before' );
2012-09-30 21:53:21 +00:00
break ;
case 'attachment_after' :
// @todo: Add links to the attachment configuration page.
2013-07-13 10:29:57 +00:00
$variables [ 'title' ] = t ( 'Attachment after' );
2012-09-30 21:53:21 +00:00
break ;
}
if ( isset ( $links )) {
$build = array (
'#theme' => 'links__contextual' ,
'#links' => $links ,
'#attributes' => array ( 'class' => array ( 'contextual-links' )),
'#attached' => array (
2014-03-09 19:59:45 +00:00
'library' => array ( 'contextual/drupal.contextual-links' ),
2012-09-30 21:53:21 +00:00
),
);
2013-07-13 10:29:57 +00:00
$variables [ 'links' ] = $build ;
2012-09-30 21:53:21 +00:00
}
2013-09-29 07:19:59 +00:00
}
/**
* Implements hook_theme_suggestions_HOOK () .
*/
function views_ui_theme_suggestions_views_ui_view_preview_section ( array $variables ) {
return array ( 'views_ui_view_preview_section__' . $variables [ 'section' ]);
2012-09-30 21:53:21 +00:00
}