Skip to content
Snippets Groups Projects

Issue #3337848: Implement hook_help()

Open Azhar Khan requested to merge issue/choices-3337848:3337848-add-hookhelp into 2.x
1 unresolved thread
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -5,6 +5,21 @@
* General functions and hook implementations.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function choices_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the choices module.
case 'help.page.choices':
$output .= '<h3>' . t('About') . '</h3>';
Please register or sign in to reply
$output .= '<p>' . t('Choices.js - Better Vanilla JS Select Widget is a Drupal module that utilizes the Choices.js plugin to provide a user-friendly, lightweight, and configurable &#60;select&#62; input option for Drupal websites. The Choices.js plugin allows for the rendering of "selects" as either boxes or lists, without requiring jQuery.') . '</p>';
return $output;
}
}
/**
* Implements hook_element_info_alter().
*/
Loading