You are here

function views_argument_substitutions_help in Views Argument Substitutions 7

Implements hook_help().

File

./views_argument_substitutions.module, line 13
Hook definitions for Views Argument Substitutions.

Code

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