function template_preprocess_asset_widget_search_filters_block in Asset 7
Preprocess variables for asset-widget-search-filters-block.tpl.php.
See also
asset-widget-search-filters-block.tpl.php
File
- modules/
asset_widget/ theme/ theme.inc, line 84 - Module related preprocesses and theme overrides.
Code
function template_preprocess_asset_widget_search_filters_block(&$vars) {
$vars['search_labels'] = array();
if (!empty($vars['search_params'])) {
// Provide few links to short mode.
$vars['search_labels'] = array_slice($vars['search_params'], 0, 3);
}
}