You are here

function ctools_context_user_settings_form_submit in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/contexts/user.inc \ctools_context_user_settings_form_submit()

File

plugins/contexts/user.inc, line 143
Plugin to provide a user context.

Code

function ctools_context_user_settings_form_submit($form, &$form_state) {
  if ($form_state['values']['set_identifier']) {
    $account = user_load($form_state['values']['uid']);
    $form_state['values']['identifier'] = $account->name;
  }
  $form_state['conf']['type'] = $form_state['values']['type'];
  $form_state['conf']['uid'] = $form_state['values']['uid'];
}