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

' . t('About') . '

'; + $output .= '

' . t('The Datetime module defines datetime field elements. It also provides a form API element called datetime for use in programming modules. Datetime can be either a date or a combination of a date and a time. See the Field module help and the Field UI help pages for general information on fields and how to create and manage them. For more information, see the online handbook entry for Datetime module.', array('!field' => \Drupal::url('help.page', array('name' => 'field')), '!field_ui' => \Drupal::url('help.page', array('name' => 'field_ui')), '!datetime' => 'https://drupal.org/documentation/modules/datetime')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Managing and displaying datetime fields') . '
'; + $output .= '
' . t('The settings and the display of the datetime 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 datetime') . '
'; + $output .= '
' . t('Datetime comes by default with two formatters. The plain text which uses the ISO format and the defaut which support built-in human readable formats.') . '
'; + $output .= '
' . t('Validating Datetime values') . '
'; + $output .= '
' . t('Datetime fields are validated when the content is saved.') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_element_info(). */ function datetime_element_info() {