You are here

function clients_help in Web Service Clients 6.2

Same name and namespace in other branches
  1. 6 clients.module \clients_help()
  2. 7.3 clients.module \clients_help()
  3. 7 clients.module \clients_help()
  4. 7.2 clients.module \clients_help()

Implementation of hook_help().

Parameters

$path: Which path of the site we're displaying help.

$arg: Holds the current path as would be returned from arg() function.

Return value

Help text for the path.

File

./clients.module, line 61
Clients module provides a UI, storage, and an API for handling connections to remote webservices, including those provided by Services module on other Drupal sites.

Code

function clients_help($path, $arg) {
  $output = '';
  switch ($path) {
    case "admin/help#clients":
      $output = '<p>' . t("Clients module provides a UI, storage, and an API for handling connections to remote webservices, including those provided by Services module on other Drupal sites.") . '</p>';
      break;
    case 'admin/build/clients':
      $output = '<p>' . t("The clients module allows you to define connections to remote sites that provide services. ") . t("Use the list below to configure and review the connections defined on your site.") . '</p>';
      break;
    case 'admin/build/clients/connections/%/test':

      // (For some reason menu loaders don't work in hook_help() it seems.)
      $output = '<p>' . t('Use this page to test your connection is set up correctly.') . '</p>';
      break;
  }
  return $output;
}