You are here

function userreference_field_info in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 userreference.module \userreference_field_info()
  2. 6.3 modules/userreference/userreference.module \userreference_field_info()
  3. 6.2 modules/userreference/userreference.module \userreference_field_info()

Implementation of hook_field_info().

Here we indicate that the content module will use its default handling for the view of this field.

File

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

Code

function userreference_field_info() {
  return array(
    'userreference' => array(
      'label' => t('User reference'),
      'description' => t('Store the ID of a related user as an integer value.'),
      'callbacks' => array(
        'tables' => CONTENT_CALLBACK_DEFAULT,
        'arguments' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}