function theme_text_format_wrapper

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 filter.module theme_text_format_wrapper($variables)
cle7 filter.module theme_text_format_wrapper($variables)
elmsmedia7 filter.module theme_text_format_wrapper($variables)
icor7 filter.module theme_text_format_wrapper($variables)
meedjum_blog7 filter.module theme_text_format_wrapper($variables)
mooc7 filter.module 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

2 string references to the theme hook from theme_text_format_wrapper()

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_element_info in modules/filter/filter.module
Implements hook_element_info().
filter_theme in modules/filter/filter.module
Implements hook_theme().

File

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

Code

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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.