You are here

function mobile_tools_is_mobile_site in Mobile Tools 5

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

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

1 call to mobile_tools_is_mobile_site()
mobile_tools_token_values in ./mobile_tools.module
Implementation of the hook_token_values().

File

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

Code

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