You are here

function noderelationships_field in Node Relationships 6

Implementation of hook_field().

File

./noderelationships.module, line 186
This is the main script for the noderelationships module. It merely contains the implementation of hooks invoked by Drupal core, CCK, Views, etc. All common functions are externalized into several scripts that are included on demand.

Code

function noderelationships_field($op, $node, $field, &$items, $teaser, $page) {
  if ($op == 'load') {

    // This is necessary so that we can use features such as
    // content_view_field() invoked by Panels integration, etc.
    return array(
      $field['field_name'] => array(
        NULL,
      ),
    );
  }
}