function viewreference_field_formatter_info in View reference 7.3
Same name and namespace in other branches
- 6.3 viewreference.module \viewreference_field_formatter_info()
- 6 viewreference.module \viewreference_field_formatter_info()
- 6.2 viewreference.module \viewreference_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./
viewreference.module, line 262 - Defines a field type for referencing a view from a node.
Code
function viewreference_field_formatter_info() {
$ret = array(
'viewreference_default' => array(
'label' => t('Default (view)'),
'description' => t('Display the referenced view.'),
'field types' => array(
'viewreference',
),
),
'viewreference_full' => array(
'label' => t('Full (title and view)'),
'description' => t('Display the referenced view with a title.'),
'field types' => array(
'viewreference',
),
),
'viewreference_plain' => array(
'label' => t('Title (no link)'),
'description' => t('Display the title of the referenced view.'),
'field types' => array(
'viewreference',
),
),
'viewreference_link' => array(
'label' => t('Title (link)'),
'description' => t('Display the title of the referenced view as a link (if possible).'),
'field types' => array(
'viewreference',
),
),
'viewreference_path' => array(
'label' => t('Path'),
'description' => t('Display the path of the referenced view (if possible).'),
'field types' => array(
'viewreference',
),
),
);
return $ret;
}