function template_preprocess_sooperthemes_gridstack_gridstack_plugin_rows in Sooperthemes GridStack 7
Implementation of template preprocess for the view fields.
File
- templates/
sooperthemes_gridstack/ theme.inc, line 32
Code
function template_preprocess_sooperthemes_gridstack_gridstack_plugin_rows(&$vars) {
$view =& $vars['view'];
foreach ($vars['options'] as $id => $field) {
switch ($id) {
case 'image':
case 'title':
case 'category':
if (isset($view->field[$field])) {
$fields =& drupal_static(__FUNCTION__);
if (!isset($fields)) {
$fields = $view->display_handler
->get_option('fields');
}
$exclude = isset($fields[$field]['exclude']) ? $fields[$field]['exclude'] : FALSE;
if (!$exclude) {
$vars[$id] = $view->field[$field]
->advanced_render($vars['row']);
}
}
break;
}
}
}