stable
Last change
on this file since da582e8 was
89c313a,
checked in by Sipes Apn <root@…>, 7 años ago
|
se agrego el modulo views_semantic
|
-
Propiedad mode establecida a
100644
|
File size:
604 octetos
|
Ver. | Línea | |
---|
[89c313a] | 1 | <?php |
---|
| 2 | /** |
---|
| 3 | * Implementation of template preprocess for the view |
---|
| 4 | */ |
---|
| 5 | function template_preprocess_views_semantic_view(&$vars) { |
---|
| 6 | global $user; |
---|
| 7 | |
---|
| 8 | $view = $vars['view']; |
---|
| 9 | $vars['fields'] = $fields = &$view->field; |
---|
| 10 | $vars['options'] = $options = $view->style_plugin->options; |
---|
| 11 | foreach ($options as $key => $name) { |
---|
| 12 | if ($values = $fields[$name]->view->style_plugin->row_tokens) { |
---|
| 13 | foreach ($values as $id => $value) { |
---|
| 14 | $rows[$name][] = $value["[$name]"]; |
---|
| 15 | $vars['report'][$key][$value["[nid]"]][] = array("value" => $value["[$name]"]); |
---|
| 16 | } |
---|
| 17 | } |
---|
| 18 | } |
---|
| 19 | $vars['rows'] = $rows; |
---|
| 20 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.