You are here

function mobile_tools_init in Mobile Tools 7.2

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_init()
  2. 6.3 mobile_tools.module \mobile_tools_init()
  3. 6.2 mobile_tools.module \mobile_tools_init()
  4. 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();
  }
}