Commit 9bbec529 authored by Nathan Haug's avatar Nathan Haug
Browse files

Removing "URL" from url field label when title field is not visible.

parent 951762a1
......@@ -489,11 +489,12 @@ function theme_link_widget_form($element) {
if (isset($element[0]['title'])) {
$element[0]['title']['#title'] = $element['#title'] . ' ' . $element[0]['title']['#title'];
$element[0]['title']['#description'] = $element['#description'];
$element[0]['url']['#title'] = $element['#title'] . ' ' . $element[0]['url']['#title'];
}
else {
$element[0]['url']['#title'] = $element['#title'];
$element[0]['url']['#description'] = $element['#description'];
}
$element[0]['url']['#title'] = $element['#title'] . ' ' . $element[0]['url']['#title'];
$output = form_render($element[0]);
}
......
Supports Markdown
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