You are here

function mobile_tools_device_groups_rebuild in Mobile Tools 7.2

Rebuild the list of implemented device groups

2 calls to mobile_tools_device_groups_rebuild()
mobile_tools_modules_disabled in ./mobile_tools.module
Implements hook_modules_disabled().
mobile_tools_modules_enabled in ./mobile_tools.module
Implements hook_modules_enabled().

File

./mobile_tools.module, line 741
Functionality to ease the creation of mixed device environments.

Code

function mobile_tools_device_groups_rebuild() {

  // Invoke hook_mobile_tools_device_group()
  $device_groups = module_invoke_all('mobile_tools_device_groups');

  // Validate the list of device groups
  _mobile_tools_validate_device_groups($device_groups);

  // Save the list
  variable_set('mobile_tools_device_groups', $device_groups);

  // Clear caches so PURL finds updated modifiers
  // @todo determine the exact caches which need clearing instead
  // of clearing all of them
  drupal_flush_all_caches();
}