You are here

function nodereference_panels_relationships in Content Construction Kit (CCK) 5

Implementation of hook_panels_relationships().

File

./nodereference.module, line 551
Defines a field type for referencing one node from another.

Code

function nodereference_panels_relationships() {
  $args = array();
  $args['node_from_noderef'] = array(
    'title' => t('Node from reference'),
    'keyword' => 'nodereference',
    'description' => t('Adds a node from a node reference in a node context; if multiple nodes are referenced, this will get the first referenced node only.'),
    'required context' => new panels_required_context(t('Node'), 'node'),
    'context' => 'nodereference_node_from_noderef_context',
    'settings form' => 'nodereference_node_from_noderef_settings_form',
    'settings form validate' => 'nodereference_node_from_noderef_settings_form_validate',
  );
  return $args;
}