You are here

function mobile_tools_nodeapi in Mobile Tools 6.2

Same name and namespace in other branches
  1. 6.3 mobile_tools.module \mobile_tools_nodeapi()
  2. 6 mobile_tools.module \mobile_tools_nodeapi()

Implementation of hook_nodeapi().

File

./mobile_tools.module, line 647
Primarily Drupal hooks.

Code

function mobile_tools_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  if ($op == 'load' && mobile_tools_site_type() == 'mobile' && variable_get('mobile_tools_enable_build_mode', 0)) {
    $node->build_mode = 'mobile';
  }
}