Skip to content
Snippets Groups Projects
Commit 2bcff71c authored by Jitendra Kumar's avatar Jitendra Kumar Committed by Viktor Holovachek
Browse files

Issue #3332187: hook_help function missing in .module file

parent 1b46b94f
No related branches found
No related tags found
1 merge request!3Issue #3332187: hook_help function missing in .module file
......@@ -5,6 +5,22 @@
* Hook implementation file for Hierarchical Term Formatter.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function hierarchical_term_formatter_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.hierarchical_term_formatter':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module provides hierarchical term formatters for taxonomy reference fields. In other words, it can display a taxonomy term reference on, say, a node as Parent > Child, rather than just Child.') . '</p>';
$output .= '<h3>' . t('Usage') . '</h3>';
$output .= '<p>' . t('Install and enable the module. Go to Admin » Structure » Content types and open the Display settings page for a taxonomy term field. (Taxonomy term fields may also be available on other entities than nodes.)') . '</p>';
return $output;
}
}
/**
* Implements hook_theme().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment