function views_plugin_query_default::options_submit

Special submit handling.

Overrides views_plugin_query::options_submit

File

plugins/views_plugin_query_default.inc, line 307

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

public function options_submit(&$form, &$form_state) {
    parent::options_submit($form, $form_state);
    $element = array(
        '#parents' => array(
            'query',
            'options',
            'query_tags',
        ),
    );
    $query_tags = drupal_array_get_nested_value($form_state['values'], $element['#parents']);
    // Check if we need to convert query tags string into an array.
    if (!is_array($query_tags)) {
        $value = explode(',', $query_tags);
        $value = array_filter(array_map('trim', $value));
        form_set_value($element, $value, $form_state);
    }
}