Skip to content
Snippets Groups Projects
Commit 4e0716fd authored by Bohdan Melnychuk's avatar Bohdan Melnychuk
Browse files

Issue #3391068: Add hook_help for the module

parent 087c9f83
No related branches found
No related tags found
1 merge request!2Issue #3391068: Add hook_help for the module
......@@ -8,3 +8,20 @@
* This file is no longer required in Drupal 8.
* @see https://www.drupal.org/node/2217931
*/
/**
* Implements hook_help().
*/
function darkmode_help($path, $arg) {
switch ($path) {
case 'help.page.darkmode':
$output = '';
$output .= '<h3>' . t('About Darkmode') . '</h3>';
$output .= '<p>' . t('The Dark Mode module allows users to enable a dark color scheme for') . '</p>';
$output .= '<p>' . t('the website, making it easier on the eyes in low-light environments.') . '</p>';
$output .= '<p>' . t('This module provides a convenient toggle button for users to switch between dark and light modes.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<p>' . t('To display the dark mode switcher needs to add the Darkmode Switcher block to the desired region in the Block Layout.') . '</p>';
return $output;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment