Révision bc175c27
Ajouté par Assos Assos il y a plus de 5 ans
drupal7/sites/all/modules/ldap/ldap_user/ldap_user.test_form.inc | ||
---|---|---|
41 | 41 |
'#type' => 'radios', |
42 | 42 |
'#title' => t('Testing Mode'), |
43 | 43 |
'#required' => 0, |
44 |
'#default_value' => isset( $_SESSION['ldap_user_test_form']['test_mode']) ? $_SESSION['ldap_user_test_form']['test_mode'] : 'query',
|
|
44 |
'#default_value' => isset( $_SESSION['ldap_user_test_form']['test_mode']) ? $_SESSION['ldap_user_test_form']['test_mode'] : 'query', |
|
45 | 45 |
'#options' => array( |
46 | 46 |
'query' => t('Test Query. Will not alter anything in drupal or LDAP'), |
47 | 47 |
'execute' => t('Execute Action. Will perform provisioning configured for events below. If this is selected only one action should be selected below'), |
... | ... | |
124 | 124 |
$results['ldap_user_conf'] = $ldap_user_conf; |
125 | 125 |
|
126 | 126 |
if (is_object($user_object)) { |
127 |
$authmaps = db_query("SELECT aid, uid, module, authname FROM {authmap} WHERE uid = :uid", array(':uid' => $user_object->uid))->fetchAllAssoc('aid', PDO::FETCH_ASSOC);
|
|
127 |
$authmaps = db_query("SELECT aid, uid, module, authname FROM {authmap} WHERE uid = :uid", array(':uid' => $user_object->uid))->fetchAllAssoc('aid', PDO::FETCH_ASSOC); |
|
128 | 128 |
} |
129 | 129 |
else { |
130 | 130 |
$authmaps = 'No authmaps available. Authmaps only shown if user account exists beforehand'; |
... | ... | |
199 | 199 |
$_SESSION['ldap_user_test_form']['test_mode'] = $form_state['values']['test_mode']; |
200 | 200 |
$_SESSION['ldap_user_test_form']['testing_drupal_username'] = $username; |
201 | 201 |
|
202 |
$form_state['redirect'] = LDAP_USER_TEST_FORM_PATH;
|
|
202 |
$form_state['redirect'] = LDAP_USER_TEST_FORM_PATH; |
|
203 | 203 |
|
204 | 204 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules