You are here

function languageicons_help in Language Icons 8

Same name and namespace in other branches
  1. 6.2 languageicons.module \languageicons_help()
  2. 6 languageicons.module \languageicons_help()
  3. 7 languageicons.module \languageicons_help()

Implements hook_help().

@todo The @handbook link needs to change to a module specific one.

File

./languageicons.module, line 35
Main functions and hook implementations for the Language Icons module.

Code

function languageicons_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.languageicons':
      $output = '<p>' . t('This module manages language icons for multilingual sites:') . '</p>';
      $output .= '<ul>';
      $output .= '<li>' . t('Automatically adds icons to language links.') . '</li>';
      $output .= '<li>' . t('Provides related theme functions.') . '</li>';
      $output .= '</ul>';
      $output .= '<p>' . t('For more information, please see <a href="@handbook">the online handbook section</a>.', array(
        '@handbook' => 'http://drupal.org/node/133977',
      )) . '</p>';
      return $output;
    case 'admin/config/regional/language/icons':
      $output = '<p>' . t('To enable multilingual support for specific content types go to <a href="@configure_content_types">configure content types</a>.', array(
        '@configure_content_types' => Url::fromRoute('entity.node_type.collection'),
      )) . '</p>';
      return $output;
  }
}