diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-17 13:41:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-17 13:41:02 +0000 |
commit | 5d6bc299ff1da408d24d618f800cd6f10d42062d (patch) | |
tree | e18c93ca4ff2dd4b7e4ca7123632f46db1e81104 | |
parent | 88b2d8ed9402d0150d63cd5061932143bbcf1cef (diff) | |
download | brdo-5d6bc299ff1da408d24d618f800cd6f10d42062d.tar.gz brdo-5d6bc299ff1da408d24d618f800cd6f10d42062d.tar.bz2 |
- Patch #882666 by mgifford: filtered description shouldn't use a label when not associated with a form.
-rw-r--r-- | modules/filter/filter.module | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 36db0db1a..d46774733 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1074,11 +1074,13 @@ function theme_filter_tips_more_info() { */ function theme_filter_guidelines($variables) { $format = $variables['format']; - - $name = isset($format->name) ? '<label>' . check_plain($format->name) . ':</label>' : ''; $attributes['class'][] = 'filter-guidelines-item'; $attributes['class'][] = 'filter-guidelines-' . $format->format; - return '<div' . drupal_attributes($attributes) . '>' . $name . theme('filter_tips', array('tips' => _filter_tips($format->format, FALSE))) . '</div>'; + $output = '<div' . drupal_attributes($attributes) . '>'; + $output .= '<h3>' . check_plain($format->name) . '</h3>'; + $output .= theme('filter_tips', array('tips' => _filter_tips($format->format, FALSE))); + $output .= '</div>'; + return $output; } /** |