You are here

function mobile_tools_device_groups in Mobile Tools 6

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_device_groups()
  2. 6.3 mobile_tools.module \mobile_tools_device_groups()
  3. 6.2 mobile_tools.module \mobile_tools_device_groups()
  4. 7.2 mobile_tools.module \mobile_tools_device_groups()

Calling the device groups, check first if third party module registered for doing the device detection

Return value

$groups Array containing the device group detected by this module

2 calls to mobile_tools_device_groups()
mobile_tools_get_device in ./mobile_tools.module
Get $device object. Check if the 'device' argument is present or a cookie is set to overwrite the device:
mobile_tools_is_mobile_ctools_access_settings in plugins/access/is_mobile.inc
Settings form for the 'by perm' access plugin

File

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

Code

function mobile_tools_device_groups() {
  $device_detection = variable_get('mobile-tools-device-detection', 'mobile_tools');
  if ($device_detection != 'mobile_tools') {
    return module_invoke($device_detection, 'device_groups');
  }
  else {
    return _mobile_tools_device_groups();
  }
}