You are here

function context_help in Context 6.3

Same name and namespace in other branches
  1. 8.4 context.module \context_help()
  2. 8 context.module \context_help()
  3. 7.3 context.core.inc \context_help()

Implementation of hook_help().

File

./context.core.inc, line 6

Code

function context_help($path, $arg) {
  switch ($path) {
    case 'admin/help#context':
      $output = file_get_contents(drupal_get_path('module', 'context') . '/README.txt');
      return module_exists('markdown') ? filter_xss_admin(module_invoke('markdown', 'filter', 'process', 0, -1, $output)) : '<pre>' . check_plain($output) . '</pre>';
  }
}