You are here

function ctools_access_ajax_edit_item_submit in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/context-access-admin.inc \ctools_access_ajax_edit_item_submit()

Submit handler for argument settings.

File

includes/context-access-admin.inc, line 436
Contains administrative screens for the access control plugins.

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