function ctools_context_handler_edit_context_submit

Process submission of the context edit form.

File

includes/context-task-handler.inc, line 541

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]);
    }
}