function _user_patterns_get_all_users in Patterns 7.2
Returns all the users currently stored in the system, excluding the anonymous.
2 calls to _user_patterns_get_all_users()
- user_patterns_export_all_users in patterns_components/
components/ user.inc - Returns a set of PATTERNS_CREATE or PATTERNS_MODIFY actions with the whole set of users currently stored in the system.
- user_patterns_validate in patterns_components/
components/ user.inc
File
- patterns_components/
components/ user.inc, line 711
Code
function _user_patterns_get_all_users() {
$query = db_select('users', 'u');
$query
->fields('u', array(
'uid',
));
$query
->condition('uid', '0', '<>');
$uids = $query
->execute()
->fetchCol();
return user_load_multiple($uids);
}