You are here

function imagecache_testsuite_help in ImageCache Actions 7

Same name and namespace in other branches
  1. 8 tests/imagecache_testsuite.module \imagecache_testsuite_help()
  2. 6.2 tests/imagecache_testsuite.module \imagecache_testsuite_help()

Implementation of hook_help()

File

tests/imagecache_testsuite.module, line 45

Code

function imagecache_testsuite_help($path) {
  switch ($path) {

    // @todo: this path does not exist anymore.
    case 'admin/build/imagecache/test':
      $output = file_get_contents(drupal_get_path('module', 'imagecache_testsuite') . "/README.txt");
      return _filter_autop($output);
      break;
    case 'admin/config/media/image-styles/testsuite':
      return t("<p>\n        This page displays a number of examples of image effects.\n        Illustrated are both the expected result and the actual result.\n        </p><p>\n        This page is just for debugging to confirm that this behavior doesn't\n        change as the code gets updated.\n        If the two illustrations do not match, there is probably something\n        that needs fixing.\n        </p><p>\n        More actions are provided by each of the imagecache actions submodules\n        and will be shown as you enable them.\n        </p>");
      break;
    case 'admin/config/media/image-styles':
      return t('
        A number of styles here are provided by the Imagecache
        Testsuite module as examples.
        Disable this module to make them go away.
      ');
      break;
  }
  return '';
}