hook_node_access called more than once I have this very simple implementation of hook_node_access

function applx_node_access($node,$op,$account){
    drupal_set_message($node);
}


This returns 

applx_application
forum
article
page
forum


And because of this i am not able to proceed further. I'm not sure why it prints the name of all bundles.
$node contains all the content-type in your application as value. So, you need to set your node access based on the $node value.

function hook_node_access($node, $op, $account) {
  $type = is_string($node) ? $node : $node-&gt;type;
  if($type == 'forum') {
    //set your permission based on $op value.
  }
}