You are here

function nd_build_fields_and_regions in Node displays 6.2

Same name and namespace in other branches
  1. 6.3 nd.module \nd_build_fields_and_regions()

Statically cached version of ds_build_fields and regions

1 call to nd_build_fields_and_regions()
_nd_nodeapi in ./nd.module
Helper function to alter node properties

File

./nd.module, line 268
Node displays.

Code

function nd_build_fields_and_regions(&$node) {
  static $displays = array();
  if (isset($displays[$node->nid][$node->build_mode])) {
    $node = $displays[$node->nid][$node->build_mode];
  }
  else {
    ds_build_fields_and_regions($node, 'nd');
    $displays[$node->nid][$node->build_mode] = $node;
  }
}