You are here

similarterms.module in Similar By Terms 8

The similarterms primary module file.

File

similarterms.module
View source
<?php

/**
 * @file
 * The similarterms primary module file.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function similarterms_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.similarterms':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Similar by Terms module provides context for content items by displaying a block of other similar content.') . '</p>';
      $output .= '<p>' . t('Similarity is based on the taxonomy terms assigned to content.') . '</p>';
      return $output;
    default:
  }
}

Functions

Namesort descending Description
similarterms_help Implements hook_help().