diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 1f0c81e..89fc718 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -27,6 +27,26 @@ const DATETIME_DATE_STORAGE_FORMAT = 'Y-m-d'; /** + * Implements hook_help(). + */ +function datetime_help($path, $arg) { + switch ($path) { + case 'admin/help#datetime': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Datetime module provides a Date field that stores dates and times. It also provides the Form API elements datetime and datelist for use in programming modules. See the Field module help and the Field UI module help pages for general information on fields and how to create and manage them. For more information, see the online documentation for the Datetime module.', array('!field' => \Drupal::url('help.page', array('name' => 'field')), '!field_ui' => \Drupal::url('help.page', array('name' => 'field_ui')), '!datetime_do' => 'https://drupal.org/documentation/modules/datetime')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Managing and displaying date fields') . '
'; + $output .= '
' . t('The settings and the display of the Date field can be configured separately. See the Field UI help for more information on how to manage fields and their display.', array('!field_ui' => \Drupal::url('help.page', array('name' => 'field_ui')))) . '
'; + $output .= '
' . t('Displaying dates') . '
'; + $output .= '
' . t('Dates can be displayed using the Plain or the Default formatter. The Plain formatter displays the date in the ISO 8601 format. If you choose the Default formatter, you can choose a format from a predefined list that can be managed on the Date and time formats page.', array('!date_format_list'=> \Drupal::url('system.date_format_list'))) . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_element_info(). */ function datetime_element_info() {