function _mobile_tools_external in Mobile Tools 5
Same name and namespace in other branches
- 6.3 mobile_tools.admin.inc \_mobile_tools_external()
- 6 mobile_tools.admin.inc \_mobile_tools_external()
- 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_detection_configuration_form in ./
mobile_tools.module - Configuration form for the mobile device detection, redirection and notification
File
- ./
mobile_tools.module, line 636 - Mobile Tools provides a range of functionality assisting in creating a mobile drupal site . this functionality contains:
Code
function _mobile_tools_external($type) {
switch ($type) {
case 'device-detection':
$modules = mobile_tools_get_module_names(module_implements('is_mobile_device'));
break;
case 'site-type-detection':
$modules = mobile_tools_get_module_names(module_implements('is_mobile_site'));
break;
case 'device-capability':
$modules = mobile_tools_get_module_names(module_implements('devicecapability'));
break;
}
return $modules;
}