'-');
return $options;
}
/**
* Provide a form for setting options.
*/
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Expand the description of the 'Inline field' checkboxes.
$form['inline']['#description'] .= '
' . t("Note: In 'References' displays, all fields will be displayed inline unless an explicit selection of inline fields is made here." );
}
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);
}
}