Excluded Users

pukku - November 1, 2006 - 15:39

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:

<?php
$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) . ")");
?>

Releases

Official releasesDateSizeLinksStatus
6.x-1.02008-Dec-097.67 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2007-Jun-197.65 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.