function theme_filter_guidelines

7.x filter.module theme_filter_guidelines($variables)

Returns HTML for guidelines for a text format.


$variables: An associative array containing:

  • format: An object representing a text format.

Related topics

2 string references to the theme hook from theme_filter_guidelines()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

filter_process_format in drupal/modules/filter/filter.module
Expands an element into a base element with text format selector attached.
filter_theme in drupal/modules/filter/filter.module
Implements hook_theme().


drupal/modules/filter/filter.module, line 1209
Framework for handling the filtering of content.


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;