You are here

function page_title_form_views_ui_config_item_form_alter_submit in Page Title 7.2

Same name and namespace in other branches
  1. 8.2 page_title.module \page_title_form_views_ui_config_item_form_alter_submit()

Submit handler for the above Argument handling code

1 string reference to 'page_title_form_views_ui_config_item_form_alter_submit'
page_title_form_views_ui_config_item_form_alter in ./page_title.module
Form Alter handler for the views ui config form (used for filters and args)

File

./page_title.module, line 736
Enhanced control over the page title (in the head tag).

Code

function page_title_form_views_ui_config_item_form_alter_submit($form, &$form_state) {
  $options =& $form_state['values']['options'];
  $page_title_pattern = isset($options['page_title_pattern']) ? $options['page_title_pattern'] : '';
  $view =& $form_state['view'];
  $view
    ->set_item_option($form_state['display_id'], $form_state['type'], $form_state['id'], 'page_title_pattern', $page_title_pattern);
  views_ui_cache_set($view);
}