You are here

function views_content_plugin_display_ctools_context::options_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 views_content/plugins/views/views_content_plugin_display_ctools_context.inc \views_content_plugin_display_ctools_context::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.

File

views_content/plugins/views/views_content_plugin_display_ctools_context.inc, line 139
Contains the block display plugin.

Class

views_content_plugin_display_ctools_context
The plugin that handles a block.

Code

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 'admin_title':
      $this
        ->set_option($form_state['section'], $form_state['values'][$form_state['section']]);
      break;
  }
}