Commit 92abd6c0 authored by John C. Fiala's avatar John C. Fiala
Browse files

Issue #1309768 by jcfiala: Made URL label of url-only link fields invisible...

Issue #1309768 by jcfiala: Made URL label of url-only link fields invisible instead of removing it, to be 508 compliant.
parent b4919a62
......@@ -653,12 +653,11 @@ function link_theme() {
*/
function theme_link_field($vars) {
drupal_add_css(drupal_get_path('module', 'link') .'/link.css');
$element = $vars['element'];
// Prefix single value link fields with the name of the field.
if (empty($element['#field']['multiple'])) {
if (isset($element['url']) && !isset($element['title'])) {
unset($element['url']['#title']);
$element['url']['#title_display'] = 'invisible';
}
}
......
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