function ctools_access_ajax_edit_item_submit

Submit handler for argument settings.

File

includes/context-access-admin.inc, line 438

Code

function ctools_access_ajax_edit_item_submit($form, &$form_state) {
    if ($function = ctools_plugin_get_function($form_state['plugin'], 'settings form submit')) {
        $function($form, $form_state);
    }
    $form_state['test']['settings'] = $form_state['values']['settings'];
    if (isset($form_state['values']['context'])) {
        $form_state['test']['context'] = $form_state['values']['context'];
    }
    $form_state['test']['not'] = !empty($form_state['values']['not']);
}