You are here

function mobile_switch_administer in Mobile Switch 7

Same name and namespace in other branches
  1. 6 mobile_switch.module \mobile_switch_administer()
  2. 7.2 mobile_switch.module \mobile_switch_administer()

Access callback.

See also

mobile_switch_menu()

mobile_switch_page_alter()

1 call to mobile_switch_administer()
mobile_switch_page_alter in ./mobile_switch.module
Implements hook_page_alter().
1 string reference to 'mobile_switch_administer'
mobile_switch_menu in ./mobile_switch.module
Implements hook_menu().

File

./mobile_switch.module, line 149
Simple theme switch for mobile devices, detected by browscap.

Code

function mobile_switch_administer() {
  global $user;
  if (user_access('administer site configuration', $user) || user_access('administer themes', $user)) {
    return TRUE;
  }
  return FALSE;
}