function mobile_tools_devicecapability in Mobile Tools 7.2
Same name and namespace in other branches
- 5 mobile_tools.module \mobile_tools_devicecapability()
- 6.3 mobile_tools.module \mobile_tools_devicecapability()
- 6 mobile_tools.module \mobile_tools_devicecapability()
- 6.2 mobile_tools.module \mobile_tools_devicecapability()
Detects if a device has the given capability.
Return value
boolean Returns TRUE if the device is capable, FALSE otherwise.
File
- ./
mobile_tools.module, line 775 - Functionality to ease the creation of mixed device environments.
Code
function mobile_tools_devicecapability($capability) {
$module = variable_get('mobile-tools-device-capability', 'wurfl');
// Ensure the desired module is loaded
drupal_load('module', $module);
return module_invoke($module, 'mobile_tools_device_capability', $capability);
}