You are here

function userone_preprocess_user_list in User One 7

Implements hook_preprocess_HOOK(). Removes user 1 from the user list; affects blocks, Who's New and Who's Online.

File

./userone.module, line 277
User One module.

Code

function userone_preprocess_user_list(&$vars) {
  foreach ($vars['users'] as $key => $usr) {
    if ($usr->uid == 1) {
      unset($vars['users'][$key]);
      return;
    }
  }
}