You are here

function userreference_user_from_userref_ctools_relationships in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/userreference/panels/relationships/user_from_userref.inc \userreference_user_from_userref_ctools_relationships()

Implementation of hook_ctools_relationships().

File

modules/userreference/panels/relationships/user_from_userref.inc, line 11
Implements the user reference relationship for Panels.

Code

function userreference_user_from_userref_ctools_relationships() {
  return 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 ctools_context_required(t('Node'), 'node'),
    'context' => 'userreference_user_from_userref_context',
    'settings form' => 'userreference_user_from_userref_settings_form',
    'settings form validate' => 'userreference_user_from_userref_settings_form_validate',
  );
}