You are here

function mobile_tools_is_mobile_site in Mobile Tools 6

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_is_mobile_site()

Detection of the site type . the values comes out the configuration form.

5 calls to mobile_tools_is_mobile_site()
mobile_tools_block_message in ./mobile_tools.module
Helper function returning the configurable message for the notification
mobile_tools_boot in ./mobile_tools.module
Implementation of hook_boot(). Hook boot is called for both anonymous users and logged in users
mobile_tools_device_redirect in ./mobile_tools.module
Being called in the hook_boot() implementation This function is in charge of redirection or displaying a notification
mobile_tools_nodeapi in ./mobile_tools.module
Implementation of hook_nodeapi
mobile_tools_switch_theme in ./mobile_tools.module
Being called in the hook_boot() implementation This function is in charge of changing to the mobile theme

File

./mobile_tools.module, line 382
Mobile Tools provides a range of functionality assisting in creating a mobile Drupal site . this functionality contains:

Code

function mobile_tools_is_mobile_site() {
  $site_detection = variable_get('mobile-tools-site-type-detection', 'mobile_tools');
  drupal_load('module', $site_detection);
  if ($site_detection == 'mobile_tools') {
    return _mobile_tools_site_detection();
  }
  else {
    return module_invoke($site_detection, 'is_mobile_site');
  }
}