You are here

function search_autocomplete_help in Search Autocomplete 7.4

Same name and namespace in other branches
  1. 6.4 search_autocomplete.admin.inc \search_autocomplete_help()
  2. 6.2 search_autocomplete.admin.inc \search_autocomplete_help()
  3. 7.2 search_autocomplete.admin.inc \search_autocomplete_help()
  4. 7.3 search_autocomplete.admin.inc \search_autocomplete_help()

Implements hook_help().

File

./search_autocomplete.admin.inc, line 122
Search Autocomplete Sets the admin part of the module: permissions, hooks, callbacks, etc...

Code

function search_autocomplete_help($path, $arg) {
  $help = '';
  switch ($path) {
    case 'admin/modules#description':
      $help = t('Allows the users with the right permission to use advanced autocompletion features on forms.');
      break;
    case 'admin/config/search/search_autocomplete':
      $help = '<div>' . t('Search Autocomplete helps you to enhance your search forms with autocompleted suggestions.') . '</div>';
      $help .= '<div>' . t('Use this form to activate the forms you want to autocomplete.') . '</div>';
      $help .= '<div>' . t('You may want to add new possible form to autocomplete. To do so, please use the tab <a href="search_autocomplete/add">Add a form</a>.') . '</div>';
      break;
    case 'admin/config/search/search_autocomplete/add':
      $help = '<div>' . t('This page allows you to add a new form to be autocompleted with the Search Autocomplete module.') . '</div>';
      $help .= '<div>' . t('This is an advanced feature configuration. Use it only if you know what you are doing and after reading <a href="http://drupal-addict.com/nos-projets/search-autocomplete">documentation</a>. If you wish help, please ask for a new default form to be added in the next release of Search Autocomplete module.') . '</div>';
      break;
    case 'admin/config/search/search_autocomplete/%/configure':
      $help = '<div>' . t('You are currently configuring the options to autocomplete a form.') . '</div>';
      $help .= '<div>' . t('Every children forms will be modified as well.') . '</div>';
      break;
  }
  return $help;
}