You are here

function mobile_tools_device_groups in Mobile Tools 6.3

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_device_groups()
  2. 6 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

4 calls to mobile_tools_device_groups()
mobile_tools_content_build_modes in ./mobile_tools.module
Implementation of hook_content_build_modes
mobile_tools_context_condition_mobile::condition_values in plugins/mobile_tools_context_condition_mobile.inc
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 570
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');
  drupal_load('module', $device_detection);
  if ($device_detection != 'mobile_tools') {
    return module_invoke($device_detection, 'device_groups');
  }
  else {
    return _mobile_tools_device_groups();
  }
}