function admin_menu_links_users

nittany7 admin_menu.inc admin_menu_links_users()
cis7 admin_menu.inc admin_menu_links_users()
mooc7 admin_menu.inc admin_menu_links_users()

Builds user counter.

See also

theme_admin_menu_links()

1 call to admin_menu_links_users()
admin_menu_output in modules/contrib/admin_menu/admin_menu.module
Build the administration menu output.

File

modules/contrib/admin_menu/admin_menu.inc, line 573
Menu builder functions for Administration menu.

Code

function admin_menu_links_users() {
  $links = array(
    '#theme' => 'admin_menu_links',
    '#wrapper_attributes' => array('id' => 'admin-menu-users'),
    '#weight' => 150,
  );
  // Add link to show current authenticated/anonymous users.
  $links['user-counter'] = array(
    '#title' => admin_menu_get_user_count(),
    '#description' => t('Current anonymous / authenticated users'),
    '#weight' => -90,
    '#attributes' => array('class' => array('admin-menu-action', 'admin-menu-users')),
    '#href' => (user_access('administer users') ? 'admin/people/people' : 'user'),
  );
  return $links;
}