function user_reference_field_formatter_info in References 7.2
Implements hook_field_formatter_info().
File
- user_reference/
user_reference.module, line 275 - Defines a field type for referencing a user from a node.
Code
function user_reference_field_formatter_info() {
return array(
'user_reference_default' => array(
'label' => t('Default'),
'description' => t("Display the name of the referenced user as a link to the user's profile page."),
'field types' => array(
'user_reference',
),
),
'user_reference_plain' => array(
'label' => t('Plain text'),
'description' => t('Display the name of the referenced user as plain text.'),
'field types' => array(
'user_reference',
),
),
'user_reference_user' => array(
'label' => t('Rendered user'),
'description' => t('Display the referenced user in a specific view mode'),
'field types' => array(
'user_reference',
),
'settings' => array(
'user_reference_view_mode' => 'full',
),
),
'user_reference_uid' => array(
'label' => t('User ID'),
'description' => t('Display the referenced user ID'),
'field types' => array(
'user_reference',
),
),
'user_reference_path' => array(
'label' => t('URL as plain text'),
'description' => t('Display the URL of the referenced user'),
'field types' => array(
'user_reference',
),
'settings' => array(
'alias' => TRUE,
'absolute' => FALSE,
),
),
);
}