function theme_filter_guidelines
theme_filter_guidelines($variables)
Returns HTML for guidelines for a text format.
Parameters
$variables: An associative array containing:
- format: An object representing a text format.
Related topics
File
- modules/filter/filter.module, line 1209
- Framework for handling the filtering of content.
Code
function theme_filter_guidelines($variables) { $format = $variables['format']; $attributes['class'][] = 'filter-guidelines-item'; $attributes['class'][] = 'filter-guidelines-' . $format->format; $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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.module/function/theme_filter_guidelines/7.x