You are here

public function SarniaViewsHandlerField::option_definition in Sarnia 7

Specify handler options, adding formatter-specific properties.

Overrides views_handler_field::option_definition

File

handlers/handler_field.inc, line 51

Class

SarniaViewsHandlerField
Field handler for displaying Solr fields in Views.

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['solr_property'] = array(
    'default' => NULL,
  );
  $options['formatter'] = array(
    'default' => NULL,
  );
  $options['settings'] = array(
    'default' => array(),
  );
  $options['is_multivalue'] = array(
    'default' => FALSE,
  );
  $options['multivalue'] = array(
    'contains' => array(
      'count' => array(
        'default' => 0,
      ),
      'list_type' => array(
        'default' => 'ul',
      ),
      'list_separator' => array(
        'default' => ', ',
      ),
    ),
  );
  return $options;
}