Commit 2c084a68 authored by Nathan Haug's avatar Nathan Haug
Browse files

Changing description of formatters to something more understandable. Correct...

Changing description of formatters to something more understandable. Correct output of 'short' formatter. Issue #131742. Thanks jonnyz.
parent a97cab4c
......@@ -419,15 +419,15 @@ function theme_link_widget_form_row($element) {
function link_field_formatter_info() {
return array(
'default' => array(
'label' => t('Default, as link'),
'label' => t('Default, as link with title'),
'field types' => array('link'),
),
'plain' => array(
'label' => t('Plain, no link'),
'label' => t('Plain, as the text URL'),
'field types' => array('link'),
),
'short' => array(
'label' => t('Short, no title as link'),
'label' => t('Short, as link with title "Link"'),
'field types' => array('link'),
),
);
......@@ -480,7 +480,7 @@ function link_field_formatter($field, $item, $formatter, $node) {
// Give the link the title 'Link'
if ($formatter == 'short') {
$output = l(t('Link'), link_cleanup_url($item['url']), $attributes, $query, $fragment);
$output = l(t('Link'), $url, $attributes, $query, $fragment);
}
// Build the link with a title
elseif (strlen(trim($item['title']))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment