You are here

function mobile_switch_administer in Mobile Switch 7.2

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

Access callback.

See also

mobile_switch_menu()

mobile_switch_page_alter()

3 calls to mobile_switch_administer()
mobile_switch_administer_advanced in ./mobile_switch.module
Access callback.
mobile_switch_administer_development in ./mobile_switch.module
Access callback.
mobile_switch_page_alter in ./mobile_switch.module
Implements hook_page_alter().
2 string references to 'mobile_switch_administer'
mobile_detect_import_menu in modules/mobile_detect_import/mobile_detect_import.module
Implements hook_menu().
mobile_switch_menu in ./mobile_switch.module
Implements hook_menu().

File

./mobile_switch.module, line 348
Provides various functionalities to develop mobile ready websites.

Code

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