function contextual_range_filter_help in Views Contextual Range Filter 7
Same name and namespace in other branches
- 8 contextual_range_filter.module \contextual_range_filter_help()
Implements hook_help().
File
Code
function contextual_range_filter_help($path, $arg) {
$help1 = t('You must first add contextual filters in the advanced section of the Views UI before they appear on this <a href="@config_page">configuration</a> page.<br/>When defined contextual range filters are employed like normal contextual filters, i.e. by apppending "arguments" to the URL. You separate "from" and "to" values by a double hyphen, e.g., <em>http://yoursite.com/yourview/50--149.95</em><br/>You may omit the from or to values to create open-ended ranges, e.g., <em>http://yoursite.com/yourview/--149.95</em> or <em>http://yoursite.com/yourview/50--</em><br/>All filter ranges are inclusive of from and to values.<br/>Instead of "<strong>--</strong>" you may use a colon "<strong>:</strong>"', array(
'@config_page' => url('admin/config/content/contextual-range-filter'),
));
switch ($path) {
case 'admin/config/content/contextual-range-filter':
return $help1;
case 'admin/help#contextual_range_filter':
$extra1 = t('Configuration and usage instructions with examples can be found in the <a target="readme" href="@README">README</a> file.', array(
'@README' => url(drupal_get_path('module', 'contextual_range_filter') . '/README.txt'),
));
$extra2 = t('Known issues and solutions may be found on the <a target="project-page" href="@contextual_range_filter">Views Contextual Range Filter</a> project page.', array(
'@contextual_range_filter' => url('http://drupal.org/project/contextual_range_filter'),
));
return $help1 . '<p>' . $extra1 . '</p><p>' . $extra2 . '</p>';
}
}