You are here

function template_preprocess_views_fieldsets_simple in Views fieldsets 7.2

Default preprocessor for views_fieldsets_simple.

File

./views_fieldsets.api.php, line 61

Code

function template_preprocess_views_fieldsets_simple(&$variables) {

  // Much better legend:
  $variables['legend'] = 'OVERRIDE YO!';

  // Wrap the whole thing with a link:
  $handler = $variables['fields'][$variables['fieldset_field']]->handler;
  $path = $handler->options['fieldset']['link']['path'];
  $path = $handler
    ->tokenize_value($path, $variables['view']->row_index);
  $vars['href'] = url($path);

  //  Use $href in the custom tpl or theme function.
}