You are here

function gtranslate_help in Translate Drupal with GTranslate 8

Same name and namespace in other branches
  1. 6 gtranslate.module \gtranslate_help()
  2. 7 gtranslate.module \gtranslate_help()

Implements hook_help().

File

./gtranslate.module, line 12
Google Translate for Drupal

Code

function gtranslate_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.gtranslate':
      $output = '<h3>' . t('GTranslate Resources') . '</h3>';
      $output .= '<ul class="links">';
      $output .= '<li><a href="https://gtranslate.io/docs" target="_blank">GTranslate Documentation</a></li>';
      $output .= '<li><a href="https://gtranslate.io/videos" target="_blank">GTranslate Videos</a></li>';
      $output .= '<li><a href="https://gtranslate.io/faq" target="_blank">GTranslate FAQ</a></li>';
      $output .= '<li><a href="https://gtranslate.io/forum/" target="_blank">GTranslate Forum</a></li>';
      $output .= '</ul>';
      return $output;
  }
}