You are here

public function views_handler_field_links::options_submit in Views (for Drupal 7) 7.3

Performs some cleanup tasks on the options array before saving it.

Overrides views_handler_field::options_submit

File

handlers/views_handler_field_links.inc, line 64
Definition of views_handler_field_links.

Class

views_handler_field_links
A abstract handler which provides a collection of links.

Code

public function options_submit(&$form, &$form_state) {

  // Remove unselected options.
  $form_state['values']['options']['fields'] = array_filter($form_state['values']['options']['fields']);
  parent::options_submit($form, $form_state);
}