You are here

function querypath_help in QueryPath 7.2

Same name and namespace in other branches
  1. 6 querypath.module \querypath_help()
  2. 7.3 querypath.module \querypath_help()

Implementation of hook_help().

File

./querypath.module, line 15
The QueryPath module.

Code

function querypath_help($path, $args) {
  if ($path == 'admin/help#querypath') {
    $out = '<p>' . t('This module provides developers with access to the QueryPath library.') . '</p>';
    $vars = array(
      '@path' => drupal_get_path('module', 'querypath') . '/QueryPath',
    );
    if (function_exists('qp')) {
      $out = '<p>' . t('Currently, you are running @version of the QueryPath library', array(
        '@version' => QueryPath::VERSION,
      )) . '</p>';
      $out = '<p>' . t('While this module ships with a version of QueryPath, you may wist to substitute in your own. To do so, replace @path with your preferred QueryPath version.', $vars) . '</p>';
    }
    else {
      $out = '<p>' . t('To use this module, you must put the QueryPath library in your PHP path or in @path.', $vars) . '</p>';
    }
    $out .= l('Learn more about QueryPath (or download the most recent release)', 'http://querypath.org');
  }
}