Skip to content
Snippets Groups Projects

hook help Implemented

+ 21
0
@@ -6,6 +6,27 @@
*/
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function open_readspeaker_help($route_name, RouteMatchInterface $route_match) {
if ($route_name === 'help.page.open_readspeaker') {
$output = '<h2>' . t('Open ReadSpeaker') . '</h2>';
$output .= '<p>' . t('Open ReadSpeaker is an adaptation from the official module that ReadSpeaker provide.') . '</p>';
$output .= '<h3>' . t('Features') . '</h3>';
$output .= '<ul><li>' . t('Block Config.') . '</li>';
$output .= '<li>' . t('Best Admin UX.') . '</li>';
$output .= '<li>' . t('You need HTML skills to change the layout.') . '</li>';
$output .= '<li>' . t('Supports Enterprise Highlighting & webReader product by ReadSpeaker.') . '</li>' . '</ul>';
$output .= '<h3>' . t('Related modules') . '</h3>';
$output .= '<p>' . t('<a href="https://www.drupal.org/project/webreader">webreader</a>(obsolete)
Use the hook_node_view to render the button. This mean only show up in node pages.
If you use a panel or custom views page this module do not provide any solution to show up the button.') . '</p>';
return $output;
}
}
/**
* Implements hook_theme().
Loading