You are here

function pack_upload_help in Pack & Upload 7

Implements hook_help().

File

./pack_upload.module, line 12
This is the module file for pack and upload.

Code

function pack_upload_help($path, $arg) {
  switch ($path) {
    case 'admin/help#pack_upload':

      // Construct the path of this module's readme file.
      $path_readme = drupal_get_path('module', 'pack_upload') . '/README.txt';

      // If the readme is available, return the contents.
      if (file_exists($path_readme)) {
        $readme = file_get_contents($path_readme);
        return '<h1>README.txt</h1><pre>' . check_plain($readme) . '</pre>';
      }
  }
}