function hook_mobile_tools_device_capability in Mobile Tools 7.2
Same name and namespace in other branches
- 7.3 mobile_tools.api.php \hook_mobile_tools_device_capability()
Detect if the given feature is available for the given device.
@todo verify the notes on this hook @todo see how this works
Parameters
string $capability: Name of the capability to test
string $device: Name of the device to test
Return value
boolean Returns TRUE if the device is capable, FALSE otherwise.
1 invocation of hook_mobile_tools_device_capability()
- mobile_tools_devicecapability in ./
mobile_tools.module - Detects if a device has the given capability.
File
- ./
mobile_tools.api.php, line 62 - API functions for mobile_tools
Code
function hook_mobile_tools_device_capability($capability, $device = NULL) {
}