function acl_edit_form_get_user_list in ACL 7
Same name and namespace in other branches
- 8 acl.admin.inc \acl_edit_form_get_user_list()
Decode and return the list of users.
Parameters
array $form: The ACL form or form_state array.
bool $get_default: (optional) In the case of a form array, whether to return the '#default_value' (or the '#value').
Return value
array An array of $uid => $username.
2 calls to acl_edit_form_get_user_list()
- acl_save_form in ./
acl.admin.inc - Write the results of a form.
- _acl_edit_form_after_build in ./
acl.admin.inc - Process a form that had our buttons on it.
File
- ./
acl.admin.inc, line 173 - Implementations of administration functions for the acl module.
Code
function acl_edit_form_get_user_list($form, $get_default = FALSE) {
if (is_array($form['user_list'])) {
return unserialize($form['user_list'][$get_default ? '#default_value' : '#value']);
}
return unserialize($form['user_list']);
}