Excluded Users

Categories

Component ID

92385

Component name

Excluded Users

Component type

module

Component security advisory coverage

not-covered

Downloads

2978

Component created

Component changed

Component body

Excluded Users is a helper module which allows administrators to select users not to appear in user listings by modules that know how to work with excluded_users. This should only be installed if you're using a module which knows how to work with it (at this time, organizational infrastructure, minutes, and site user list).

Developers, you can make use of this module like this:

$uids_to_exclude = array(0); //usually, you want to exclude the anonymous user
if (module_exist('excluded_users')) {
  $uids_to_exclude = excluded_users_get_excluded_uids();
}
// ...
$users_query = db_query("SELECT uid FROM {users}
                         WHERE uid not in (" . implode(",", $uids_to_exclude) . ")");