You are here

function services_help in Services 6.3

Same name and namespace in other branches
  1. 5 services.module \services_help()
  2. 6 services.module \services_help()
  3. 6.2 services.module \services_help()
  4. 7.3 services.module \services_help()
  5. 7 services.module \services_help()

Implementation of hook_help().

1 call to services_help()
ServicesModuleTests::testServicesHelp in tests/unit/TestServicesModule.test
Test services_help function.

File

./services.module, line 16
Provides a generic but powerful API for web services.

Code

function services_help($path, $arg) {
  $output = NULL;
  switch ($path) {
    case 'admin/help#services':
      $output = '<p>' . t('Visit the <a href="@handbook_url">Services Handbook</a> for help and information.', array(
        '@handbook_url' => 'http://drupal.org/node/109782',
      )) . '</p>';
      break;
    case 'admin/build/services':
      $output = '<p>' . t('Services are collections of methods available to remote applications. They are defined in modules, and may be accessed in a number of ways through server modules. Visit the <a href="@handbook_url">Services Handbook</a> for help and information.', array(
        '@handbook_url' => 'http://drupal.org/node/109782',
      )) . '</p>';
      $output .= '<p>' . t('All enabled services are shown. Click on any method to view information or test.') . '</p>';
      break;
  }
  return $output;
}