You are here

function subuser_administer_users_title in Subuser 6

Title callback for admin/user/user page.

Set the title to the custom subuser administer title when user has 'administer subusers' and not 'administer users' permission.

Return value

string Either default title or custom subuser title.

1 string reference to 'subuser_administer_users_title'
subuser_menu_alter in ./subuser.module
Implementation of hook_menu_link_alter().

File

./subuser.module, line 206
Allows users of a particular role to create sub user account in another role.

Code

function subuser_administer_users_title() {
  if (!user_access('administer users') && user_access('administer subusers')) {
    return t(SUBUSER_ADMINISTER);
  }
  return t('Users');
}