You are here

function _advuser_dbquery_users_to_notify in Advanced User 5.2

Same name and namespace in other branches
  1. 5 advuser.module \_advuser_dbquery_users_to_notify()
  2. 6.3 advuser.module \_advuser_dbquery_users_to_notify()
  3. 6.2 advuser.module \_advuser_dbquery_users_to_notify()
  4. 7.3 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 db_query.

1 call to _advuser_dbquery_users_to_notify()
_advuser_mail_roles in ./advuser.module
@private Mail users in requested notification role.

File

./advuser.module, line 546
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');
  $user_where = implode(',', $user_where);
  return empty($user_where) ? FALSE : db_query('SELECT u.mail, u.name FROM {users} u WHERE uid IN (' . $user_where . ')');
}