function views_plugin_display_page::options_submit
Overrides views_plugin_display::options_submit
1 call to views_plugin_display_page::options_submit()
- views_plugin_display_feed::options_submit in plugins/
views_plugin_display_feed.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
1 method overrides views_plugin_display_page::options_submit()
- views_plugin_display_feed::options_submit in plugins/
views_plugin_display_feed.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
File
-
plugins/
views_plugin_display_page.inc, line 573
Class
- views_plugin_display_page
- The plugin that handles a full page.
Code
public function options_submit(&$form, &$form_state) {
// It is very important to call the parent function here.
parent::options_submit($form, $form_state);
switch ($form_state['section']) {
case 'path':
$this->set_option('path', $form_state['values']['path']);
break;
case 'menu':
$this->set_option('menu', $form_state['values']['menu']);
// Send ajax form to options page if we use it.
if ($form_state['values']['menu']['type'] == 'default tab') {
views_ui_add_form_to_stack('display', $this->view, $this->display->id, array(
'tab_options',
));
}
break;
case 'tab_options':
$this->set_option('tab_options', $form_state['values']['tab_options']);
break;
}
}