bratsun
5/23/2014 - 10:13 AM

Check node type

Check node type

if (arg(0)=='node' && is_numeric(arg(1)) && !arg(2)) {
  $node = node_load(arg(1));
  if ($node->type == 'surgeon') {
    //do something
  }
}