theme_filter_guidelines

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 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

Code

modules/filter/filter.module, line 1136

<?php
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;
}
?>