You are here

function fillpdf_help in FillPDF 6

Same name and namespace in other branches
  1. 8.4 fillpdf.module \fillpdf_help()
  2. 5 fillpdf.module \fillpdf_help()
  3. 7.2 fillpdf.module \fillpdf_help()
  4. 7 fillpdf.module \fillpdf_help()
  5. 5.0.x fillpdf.module \fillpdf_help()

Implementation of hook_help().

File

./fillpdf.module, line 17
Allows mappings of PDFs to site content

Code

function fillpdf_help($path, $arg) {
  switch ($path) {
    case 'admin/help#fillpdf':
      $content = _fillpdf_get_file_contents(drupal_get_path('module', 'fillpdf') . '/README.txt');
      $content = '<pre>' . check_plain($content) . '</pre>';
      return $content;
    case 'admin/content/fillpdf':
      if (module_exists('help')) {
        return t('See the !link for an explanation on downloading these forms to PDF', array(
          '!link' => l(t('Documentation'), 'admin/help/fillpdf'),
        ));
      }
      else {
        return t('Activate the help module if you need an ' . 'explanation on downloading these forms to PDF.');
      }
  }
}