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

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.0 Download (7.67 KB) 2008-Dec-09 Notes

Development releases

Version Downloads Date Links
5.x-1.x-dev Download (7.65 KB) 2007-Jun-19 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.