You are here

function template_preprocess_asset__widget_search in Asset 7

Preprocess variables for asset--widget-search.tpl.php.

See also

asset--widget-search.tpl.php

File

modules/asset_widget/theme/theme.inc, line 97
Module related preprocesses and theme overrides.

Code

function template_preprocess_asset__widget_search(&$vars) {

  // Run preprocesses for default asset types.
  $preprocess = 'template_preprocess_' . $vars['entity_type'] . '__' . $vars['asset']->type . '__' . $vars['view_mode'];
  if (function_exists($preprocess)) {
    $preprocess($vars);
  }
  $vars['buttons'] = theme('asset_widget_edit_buttons', array(
    'asset' => $vars['asset'],
  ));
  $vars['view_mode_switch'] = theme('asset_widget_view_mode_switch_block', array(
    'asset' => $vars['asset'],
  ));
}