function nodereferrer_field_formatter_info in NodeReferrer 7
Same name and namespace in other branches
- 5 nodereferrer.module \nodereferrer_field_formatter_info()
- 6 nodereferrer.module \nodereferrer_field_formatter_info()
Implements hook_field_formatter_info().
1 call to nodereferrer_field_formatter_info()
- nodereferrer_view_handler_field::options_form in views/
nodereferrer_view_handler_field.inc - Form to get field parameters
File
- ./
nodereferrer.module, line 353 - Defines a field type for backlinking referencing nodes.
Code
function nodereferrer_field_formatter_info() {
$ret = array(
'nodereferrer_default' => array(
'label' => t('Title (link)'),
'description' => t('Display the title of the referred node as a link to the node page.'),
'field types' => array(
'nodereferrer',
),
),
'nodereferrer_plain' => array(
'label' => t('Title (no link)'),
'description' => t('Display the title of the referred node as plain text.'),
'field types' => array(
'nodereferrer',
),
),
'nodereferrer_node' => array(
'label' => t('Rendered node'),
'description' => t('Display the referred node in a specific view mode'),
'field types' => array(
'nodereferrer',
),
'settings' => array(
'nodereferrer_view_mode' => 'full',
),
),
'nodereferrer_count' => array(
'label' => t('Node Count'),
'field types' => array(
'nodereferrer',
),
'settings' => array(
'prefix_suffix' => '',
),
),
);
return $ret;
}