template_preprocess_filter_guidelines

template_preprocess_filter_guidelines(&$variables)

Prepares variables for text format guideline templates.

Default template: filter-guidelines.html.twig.

Parameters

array $variables: An associative array containing:

  • format: An object representing a text format.

File

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

Code

function template_preprocess_filter_guidelines(&$variables) {
  $format = $variables['format'];
  $variables['tips'] = array(
    '#theme' => 'filter_tips',
    '#tips' => _filter_tips($format->id(), FALSE),
  );
}
doc_Drupal
2016-10-29 09:46:41
Comments
Leave a Comment

Please login to continue.