You are here

function ctools_context_handler_edit_context_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/context-task-handler.inc \ctools_context_handler_edit_context_submit()

Process submission of the context edit form.

File

includes/context-task-handler.inc, line 424
Support for creating 'context' type task handlers.

Code

function ctools_context_handler_edit_context_submit(&$form, &$form_state) {
  $handler =& $form_state['handler'];
  $cache_name = $handler->name ? $handler->name : 'temp';
  $handler->conf['contexts'] = $form_state['context_object']->contexts;
  $handler->conf['relationships'] = $form_state['context_object']->relationships;
  if (isset($form_state['page']->context_cache[$cache_name])) {
    unset($form_state['page']->context_cache[$cache_name]);
  }
}