| 1 |
<?php |
<?php |
| 2 |
// $Id: content_plugin_style_php_array_ac.inc,v 1.1.2.1 2008/09/04 18:12:27 yched Exp $ |
// $Id: content_plugin_style_php_array_ac.inc,v 1.1.2.2 2008/10/04 13:14:21 karens Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 18 |
|
|
| 19 |
// TODO : We don't display grouping info for now. |
// TODO : We don't display grouping info for now. |
| 20 |
// Could be useful for select widget, though. |
// Could be useful for select widget, though. |
| 21 |
|
$this->view->row_index = 0; |
| 22 |
foreach ($sets as $title => $records) { |
foreach ($sets as $title => $records) { |
| 23 |
foreach ($records as $label => $row) { |
foreach ($records as $label => $row) { |
| 24 |
$results[$row->{$base_field}] = array( |
$results[$row->{$base_field}] = array( |
| 25 |
'title' => $row->{$title_field_alias}, |
'title' => $row->{$title_field_alias}, |
| 26 |
'rendered' => $this->row_plugin->render($row), |
'rendered' => $this->row_plugin->render($row), |
| 27 |
); |
); |
| 28 |
|
$this->view->row_index++; |
| 29 |
} |
} |
| 30 |
} |
} |
| 31 |
|
unset($this->view->row_index); |
| 32 |
return $results; |
return $results; |
| 33 |
} |
} |
| 34 |
} |
} |