You are here

function node_field_menu_loader_node_load in Node Field 7.2

Menu node loader callback.

File

./node_field.module, line 99
This module provide ability to add extra fields to any single node.

Code

function node_field_menu_loader_node_load($nid) {
  $node = node_load($nid);

  // Return if it is not a node.
  if (!$node) {
    return FALSE;
  }
  if (user_access('add/edit/delete fields to node')) {
    return $node;
  }
  else {
    return FALSE;
  }
}