You are here

function lang_dropdown_help in Language Switcher Dropdown 7

Same name and namespace in other branches
  1. 8.2 lang_dropdown.module \lang_dropdown_help()
  2. 6 lang_dropdown.module \lang_dropdown_help()
  3. 7.2 lang_dropdown.module \lang_dropdown_help()

Implements hook_help().

File

./lang_dropdown.module, line 8

Code

function lang_dropdown_help($path, $arg) {
  switch ($path) {
    case 'admin/help#lang_dropdown':
      $output = '<p>' . t('The module will populate a new block named "Language switcher dropdown" under <a href="@block_admin">blocks admin page</a>.', array(
        '@block_admin' => check_plain(url('admin/structure/block')),
      )) . '</p>';
      $output .= '<p>' . t('For more information on blocks, please see <a href="@blocks_help">block help section</a>.', array(
        '@blocks_help' => check_plain(url('admin/help/block')),
      )) . '</p>';
      $output .= '<p>' . t('The module Provides same functionality as the core language switcher block but with a better look&feel.') . '</p>';
      $output .= '<p>' . t('For more information on multilingual sites, please see <a href="@locale_help">locale help section</a>.', array(
        '@locale_help' => check_plain(url('admin/help/locale')),
      )) . '</p>';
      return $output;
    case 'admin/structure/block/manage/%/%':
      if ($arg[4] == 'lang_dropdown') {
        return '<p>' . t('This block is only shown if <a href="@languages">at least two languages are enabled</a> and <a href="@configuration">language negotiation</a> is set to <em>URL</em> or <em>Session</em>.', array(
          '@languages' => url('admin/config/regional/language'),
          '@configuration' => url('admin/config/regional/language/configure'),
        )) . '</p>';
      }
      break;
  }
}