1 views_handler_field_bulk_form.inc views_handler_field_bulk_form::options_form(&$form, &$form_state)

Overrides views_handler_field::options_form().

Overrides views_handler_field::options_form

File

core/modules/views/handlers/views_handler_field_bulk_form.inc, line 33
Definition of views_handler_field_bulk_form.

Class

views_handler_field_bulk_form
Defines a actions-based bulk operation form element.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  $form['include_exclude'] = array(
    '#type' => 'radios',
    '#title' => t('Available actions'),
    '#options' => array(
      'exclude' => t('All actions, except selected'),
      'include' => t('Only selected actions'),
    ),
    '#default_value' => $this->options['include_exclude'],
  );
  $form['selected_actions'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Selected actions'),
    '#options' => $this->get_bulk_options(FALSE),
    '#default_value' => $this->options['selected_actions'],
  );
}