Skip to content
Snippets Groups Projects

Issue #3344165: Implement hook_help()

1 file
+ 29
0
Compare changes
  • Side-by-side
  • Inline
+ 29
0
@@ -5,6 +5,35 @@
* Hijri format.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function hijri_format_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the hijri_format module.
case 'help.page.hijri_format':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Hijri Format module allows you to convert dates to the Hijri format. The module includes a display format for created and changed fields for Nodes and Comments entities, and Date fields for all entity types.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Custom Formats') . '</dt>';
$output .= '<dd>' . t('You are not restricted to a predefined list of formats, build your own date format.') . '</dd>';
$output .= '<dt>' . t('Support for Umm Ulqura') . '</dt>';
$output .= '<dd>' . t('You can adjust the date to match Umm Ulqura, the official calendar of the Kingdom of Saudi Arabia.') . '</dd>';
$output .= '<dt>' . t('Multilingual Support') . '</dt>';
$output .= '<dd>' . t('We are not using 3rd party libraries for translation, this module built with an eye on translation') . '</dd>';
$output .= '<dt>' . t('Indian numbers') . '</dt>';
$output .= '<dd>' . t('Option to show date with Indian numbers.') . '</dd>';
$output .= '<dt>' . t('Current date block') . '</dt>';
$output .= '<dd>' . t('Add as much as you need from the current date block, with the custom format you define.') . '</dd>';
$output .= '</dl>';
return $output;
}
}
/**
* Implements hook_theme().
*/
Loading