1 views_plugin_query_default.inc views_plugin_query_default::options_submit(&$form, &$form_state)

Special submit handling.

Overrides views_plugin_query::options_submit

File

core/modules/views/plugins/views_plugin_query_default.inc, line 279
Defines the default query object.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function options_submit(&$form, &$form_state) {
  $element = array('#parents' => array('query', 'options', 'query_tags'));
  $value = backdrop_array_get_nested_value($form_state['values'], $element['#parents']);
  // This method may be called more than once. When called for the first time,
  // it receives a string from the form element. That string must be exploded
  // into an array before setting the form value.
  if (is_string($value)) {
    $value = explode(',', $value);
  }
  $value = array_filter(array_map('trim', $value));
  form_set_value($element, $value, $form_state);
}