function views_plugin_display_block::options_submit
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
Overrides views_plugin_display::options_submit
File
-
plugins/
views_plugin_display_block.inc, line 174
Class
- views_plugin_display_block
- The plugin that handles a block.
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 'display_id':
$this->update_block_bid($form_state['view']->name, $this->display->id, $this->display->new_id);
break;
case 'block_description':
$this->set_option('block_description', $form_state['values']['block_description']);
break;
case 'block_caching':
$this->set_option('block_caching', $form_state['values']['block_caching']);
$this->save_block_cache($form_state['view']->name . '-' . $form_state['display_id'], $form_state['values']['block_caching']);
break;
}
}