- Patch #882666 by mgifford: filtered description shouldn't use a label when not associated with a form.
parent
88b2d8ed94
commit
5d6bc299ff
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue