function mobile_tools_init in Mobile Tools 7.2
Same name and namespace in other branches
- 5 mobile_tools.module \mobile_tools_init()
- 6.3 mobile_tools.module \mobile_tools_init()
- 6.2 mobile_tools.module \mobile_tools_init()
- 7.3 mobile_tools.module \mobile_tools_init()
Implements hook_init().
File
- ./
mobile_tools.module, line 101 - Functionality to ease the creation of mixed device environments.
Code
function mobile_tools_init() {
// Redirect if required
if (variable_get('mobile_tools_redirect', FALSE)) {
// @todo fix, this doesn't work
// need to use something other than hook_init or get spaces
// to activate sooner
mobile_tools_device_redirect();
}
}