You are here

function coder_help in Coder 6.2

Same name and namespace in other branches
  1. 5.2 coder.module \coder_help()
  2. 5 coder.module \coder_help()
  3. 6 coder.module \coder_help()

Implementation of hook_help().

1 call to coder_help()
coder_page in ./coder.module
Implementation of code review page.

File

./coder.module, line 44

Code

function coder_help($page, $arg) {
  switch ($page) {
    case 'coder#disclaimer':
      return t('Coder provides helpful hints without false positives, but offers no guarantee for creating good code.  You are the final arbitrar.  If in doubt, read the Drupal documentation (see review links below and <a href="@api">api.drupal.org</a>).', array(
        '@api' => 'http://api.drupal.org',
      ));
    case 'drush:coder':
      return t('coder [summary] [@reviews] [minor|major|critical] [active|core|all|default|<modules>] [no-<module>]', array(
        '@reviews' => implode('|', array_keys(_coder_reviews())),
      ));
  }
}