You are here

function _advuser_dbquery_users_to_notify in Advanced User 6.3

Same name and namespace in other branches
  1. 5.2 advuser.module \_advuser_dbquery_users_to_notify()
  2. 5 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_receive_notification_by_role in ./advuser.module
@private Notify account registrations and modifications for the given users of a role.

File

./advuser.module, line 301
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.* FROM {users} u WHERE u.uid IN (' . $user_where . ')');
}