diff --git a/views_fieldsets.module b/views_fieldsets.module index af518a6fa77a5f337f12f9f4acb4a1b274aa1f8a..0cdc7ebd9d8b3b4f4d6353ecd8c3b552f7da350f 100644 --- a/views_fieldsets.module +++ b/views_fieldsets.module @@ -7,9 +7,31 @@ use Drupal\Component\Utility\SortArray; use Drupal\Core\Render\Element; +use Drupal\Core\Routing\RouteMatchInterface; use Drupal\views_fieldsets\Plugin\views\field\Fieldset; use Drupal\views_ui\ViewUI; +/** + * Implements hook_help(). + */ +function views_fieldsets_help($route_name, RouteMatchInterface $route_match) { + if ($route_name == 'help.page.views_fieldsets') { + $output = '<p>' . t('Creates fieldset (and details and div) in Views fields output, to group fields, + by adding a new field: "Global: Fieldset" and a few preprocessors. Also + introduces a new template: views-fieldsets-fieldset.tpl.php where you can + customize your fieldset output. + ') . '</p>'; + + $output .= '<h3>' . t('For a full description of the module, visit the project page:') . '</h3>'; + $output .= t('https://www.drupal.org/project/views_fieldsets') . '<br />'; + + $output .= '<h3>' . t('To submit bug reports and feature suggestions, or to track changes:') . '</h3>'; + $output .= t('https://www.drupal.org/project/issues/views_fieldsets') . '<br />'; + + return $output; + } +} + /** * Implements hook_theme(). */