You are here

glossify.module in Glossify 8

Glossify module.

File

glossify.module
View source
<?php

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

/**
 * Implements hook_help().
 */
function glossify_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.glossify':
      return 'todo';
  }
}

/**
 * Implements hook_theme().
 */
function glossify_theme() {
  return [
    'glossify_tooltip' => [
      'variables' => [
        'word' => NULL,
        'tip' => NULL,
      ],
    ],
    'glossify_link' => [
      'variables' => [
        'word' => NULL,
        'tip' => NULL,
        'tipurl' => NULL,
      ],
    ],
  ];
}

Functions

Namesort descending Description
glossify_help Implements hook_help().
glossify_theme Implements hook_theme().