theme_text_format_wrapper

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 theme_text_format_wrapper($variables)

Returns HTML for a text format-enabled form element.

Parameters

$variables An associative array containing:

  • element: A render element containing #children and #description.

Related topics

Code

modules/filter/filter.module, line 958

<?php
function theme_text_format_wrapper($variables) {
  $element = $variables['element'];
  $output = '<div class="text-format-wrapper">';
  $output .= $element['#children'];
  if (!empty($element['#description'])) {
    $output .= '<div class="description">' . $element['#description'] . '</div>';
  }
  $output .= "</div>\n";

  return $output;
}
?>