You are here

function mobile_switch_administer in Mobile Switch 6

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

Access callback.

See also

mobile_switch_menu()

mobile_switch_preprocess_page()

1 call to mobile_switch_administer()
mobile_switch_preprocess_page in ./mobile_switch.module
Display a user agent message or browscap details.
1 string reference to 'mobile_switch_administer'
mobile_switch_menu in ./mobile_switch.module
Implementation of hook_menu().

File

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

Code

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