You are here

function date_handler_field_multiple::option_definition in Date 6.2

Same name and namespace in other branches
  1. 7 date_views/includes/date_handler_field_multiple.inc \date_handler_field_multiple::option_definition()

File

date/date_handler_field_multiple.inc, line 12
An extended subclass for field handling that adds multiple field grouping.

Class

date_handler_field_multiple
@file An extended subclass for field handling that adds multiple field grouping.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['repeat'] = array(
    'contains' => array(
      'show_repeat_rule' => array(
        'default' => '',
      ),
    ),
  );
  $options['multiple'] = array(
    'contains' => array(
      'group' => array(
        'default' => TRUE,
      ),
      'multiple_number' => array(
        'default' => '',
      ),
      'multiple_from' => array(
        'default' => '',
      ),
      'multiple_to' => array(
        'default' => '',
      ),
    ),
  );
  $options['fromto'] = array(
    'contains' => array(
      'fromto' => array(
        'default' => 'both',
      ),
    ),
  );
  return $options;
}