function link_field_formatter_info in Link 6
Same name and namespace in other branches
- 5 link.module \link_field_formatter_info()
- 6.2 link.module \link_field_formatter_info()
- 7 link.module \link_field_formatter_info()
Implementation of hook_field_formatter_info().
File
- ./
link.module, line 497 - Defines simple link field types.
Code
function link_field_formatter_info() {
return array(
'default' => array(
'label' => t('Title, as link (default)'),
'field types' => array(
'link',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'url' => array(
'label' => t('URL, as link'),
'field types' => array(
'link',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'plain' => array(
'label' => t('URL, as plain text'),
'field types' => array(
'link',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'short' => array(
'label' => t('Short, as link with title "Link"'),
'field types' => array(
'link',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'label' => array(
'label' => t('Label, as link with label as title'),
'field types' => array(
'link',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'separate' => array(
'label' => t('Separate title and URL'),
'field types' => array(
'link',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
);
}