function _advuser_dbquery_users_to_notify in Advanced User 7.3
Same name and namespace in other branches
- 5.2 advuser.module \_advuser_dbquery_users_to_notify()
- 5 advuser.module \_advuser_dbquery_users_to_notify()
- 6.3 advuser.module \_advuser_dbquery_users_to_notify()
- 6.2 advuser.module \_advuser_dbquery_users_to_notify()
@private Return a list of users to send notification of user changes.
Return value
resource // The result of the query.
1 call to _advuser_dbquery_users_to_notify()
- _advuser_receive_notification_by_role in ./
advuser.module - @private Notify account registrations and modifications for the given users of a role.
File
- ./
advuser.module, line 233 - Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.
Code
function _advuser_dbquery_users_to_notify() {
$user_where = users_by_access_('receive email advuser');
return empty($user_where) ? FALSE : db_select('users', 'u')
->fields('u')
->condition('uid', $user_where, 'IN')
->execute();
}