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!
Making device groups
Device groups is a concept introduced by the Mobile Tools module in order to switch to different themes depending on the device. WURFL just provides a simple "Mobile Device" group. However you can easily make a contrib module that extends the device groups. For an example, look at the "contrib" folder of this module.
For questions, issues or other relevant communications contact me or follow me on twitter @twom
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Seeking new maintainer
- Development status: No further development
- Module categories: Mobile
- Reported installs: 721 sites currently report using this module. View usage statistics.
- Downloads: 12,467
- Last modified: November 25, 2011