You are here

function ctools_context_user_settings_form_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 plugins/contexts/user.inc \ctools_context_user_settings_form_submit()
1 string reference to 'ctools_context_user_settings_form_submit'
user.inc in plugins/contexts/user.inc
Plugin to provide a user context

File

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

Code

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

  // Don't let this be stored.
  unset($form_values['set_identifier']);
}