Révision 4f315dab
Ajouté par Assos Assos il y a environ 8 ans
drupal7/sites/all/modules/cas/cas.drush.inc | ||
---|---|---|
60 | 60 |
$options = array('invoke_cas_user_presave' => TRUE); |
61 | 61 |
$new_user_object = cas_user_register($cas_name, $options); |
62 | 62 |
if ($new_user_object !== FALSE) { |
63 |
_drush_user_print_info($new_user_object->uid); |
|
64 |
// return $new_user_object->uid; |
|
63 |
$user_fields = array('cas_name', 'uid', 'name', 'mail', 'status'); |
|
64 |
$new_user_object = (array) $new_user_object; |
|
65 |
$new_user_object = array_intersect_key($new_user_object, array_flip($user_fields)); |
|
66 |
$new_user_object = drush_key_value_to_array_table($new_user_object); |
|
67 |
drush_print_table($new_user_object); |
|
65 | 68 |
} |
66 | 69 |
else { |
67 | 70 |
drush_set_error(dt('Could not create a new user account with CAS username @cas_name.', array('@cas_name' => $cas_name))); |
Formats disponibles : Unified diff
Weekly update of contrib modules