From 2303fb3026e02343bcd33d14e8c79f488e8389b8 Mon Sep 17 00:00:00 2001 From: muka <muka@102995.no-reply.drupal.org> Date: Thu, 18 Apr 2013 08:28:15 -0500 Subject: [PATCH] Don't print markup when label is empty: http://drupal.org/node/1958846 --- label_help.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label_help.module b/label_help.module index b32103f..0859851 100644 --- a/label_help.module +++ b/label_help.module @@ -99,7 +99,7 @@ function label_help_theme_registry_alter(&$theme_registry) { */ function label_help_theme_form_element_label($variables) { $desc = ''; - if (isset($variables['element']['#theme_options']['description at top'])) { + if (isset($variables['element']['#theme_options']['description at top']) && !empty($variables['element']['#theme_options']['description at top'])) { $desc = '<div class="description">' . t($variables['element']['#theme_options']['description at top']) . '</div>'; } -- GitLab