You are here

function userreference_panels_relationships in Content Construction Kit (CCK) 5

Implementation of hook_panels_relationships().

Return value

unknown

File

./userreference.module, line 446
Defines a field type for referencing a user from a node.

Code

function userreference_panels_relationships() {
  $args = array();
  $args['user_from_userref'] = array(
    'title' => t('User from reference'),
    'keyword' => 'userreference',
    'description' => t('Adds a user from a user reference in a node context; if multiple users are referenced, this will get the first referenced user only.'),
    'required context' => new panels_required_context(t('Node'), 'node'),
    'context' => 'userreference_user_from_userref_context',
    'settings form' => 'userreference_usere_from_userref_settings_form',
    'settings form validate' => 'userreference_user_from_userref_settings_form_validate',
  );
  return $args;
}