- Patch #882666 by mgifford: filtered description shouldn't use a label when not associated with a form.

merge-requests/26/head
Dries Buytaert 2010-08-17 13:41:02 +00:00
parent 88b2d8ed94
commit 5d6bc299ff
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}
/**