Current project status
See #1321338: WURFL data is no longer open source
Intro
The WURFL module helps you in detecting the device capabilities of the mobile device visiting your website. It is based on WURFL and the WURFL PHP library..
The module provides device capability detection as an api to developers.
The WURFL module can be used by calling the native interface:
$requestingDevice = wurfl_get_requestingDevice();
// get capabilities (see http://wurfl.sourceforge.net/help_doc.php)
$requestingDevice->getCapability("is_wireless_device");
$width = $requestingDevice->getCapability('resolution_width');
$height = $requestingDevice->getCapability('resolution_height');
$browser = $requestingDevice->getCapability('mobile_browser');
By using the Mobile Tools module, you can use the more generic function call:
mobile_tools_devicecapability($capability)
The function will forward its request to the module that has been selected to detect device capabilities (currently, only the WURFL implementation exist, but more implementation could be added in the future!).
The module can be used to make adaptive themes, do advanced logging, etc ... Reports on experimentation are welcome!