function entityreference_plugin_row_fields::pre_render in Entity reference 7
Allow the style to do stuff before each row is rendered.
Parameters
array $result: The full array of results from the query.
Overrides views_plugin_row::pre_render
File
- views/
entityreference_plugin_row_fields.inc, line 27 - Handler for entityreference_plugin_row_fields.
Class
- entityreference_plugin_row_fields
- @file Handler for entityreference_plugin_row_fields.
Code
function pre_render($row) {
// Force all fields to be inline by default.
if (empty($this->options['inline'])) {
$fields = $this->view
->get_items('field', $this->display->id);
$this->options['inline'] = drupal_map_assoc(array_keys($fields));
}
return parent::pre_render($row);
}