function link_field_formatter_info in Link 7
Same name and namespace in other branches
- 5 link.module \link_field_formatter_info()
- 6.2 link.module \link_field_formatter_info()
- 6 link.module \link_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./
link.module, line 1190 - Defines simple link field types.
Code
function link_field_formatter_info() {
return array(
'link_default' => array(
'label' => t('Title, as link (default)'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'settings' => array(
'custom_title' => '',
),
),
'link_title_plain' => array(
'label' => t('Title, as plain text'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_host' => array(
'label' => t('Host, as plain text'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_url' => array(
'label' => t('URL, as link'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_plain' => array(
'label' => t('URL, as plain text'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_absolute' => array(
'label' => t('URL, absolute'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_domain' => array(
'label' => t('Domain, as link'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'settings' => array(
'strip_www' => FALSE,
),
),
'link_no_protocol' => array(
'label' => t('URL with the protocol removed'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_short' => array(
'label' => t('Short, as link with title "Link"'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_label' => array(
'label' => t('Label, as link with label as title'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
'link_separate' => array(
'label' => t('Separate title and URL'),
'field types' => array(
'link_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
),
);
}