You are here

function _mobile_tools_external in Mobile Tools 6

Same name and namespace in other branches
  1. 5 mobile_tools.module \_mobile_tools_external()
  2. 6.3 mobile_tools.admin.inc \_mobile_tools_external()
  3. 7.2 mobile_tools.admin.inc \_mobile_tools_external()

Help function that retrieves the modules that implement the hook_is_mobile_device() or hook_is_mobile_site() hooks.

1 call to _mobile_tools_external()
mobile_tools_external_modules_configuration_form in ./mobile_tools.admin.inc
Configuration of external modules

File

./mobile_tools.admin.inc, line 325
Adminstrative pages for Mobile Tools

Code

function _mobile_tools_external($type) {
  switch ($type) {
    case 'device-detection':
      $modules = mobile_tools_get_module_names(module_implements('is_mobile_device'));
      break;
    case 'device-capability':
      $modules = mobile_tools_get_module_names(module_implements('devicecapability'));
      unset($modules['mobile_tools']);
      break;
  }
  return $modules;
}