You are here

html_formatter.module in HTML Formatter 8

File

html_formatter.module
View source
<?php

/**
 * @file
 * Contains html_formatter.module..
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function html_formatter_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the html_formatter module.
    case 'help.page.html_formatter':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Adds HTML Formatter to textfields') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function html_formatter_theme() {
  return [
    'html_formatter' => [
      'variables' => [
        'value' => NULL,
        'tag' => NULL,
        'attributes' => [],
      ],
    ],
  ];
}

Functions

Namesort descending Description
html_formatter_help Implements hook_help().
html_formatter_theme Implements hook_theme().