diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 1f0c81e..bd75f7b 100644 --- a/core/modules/datetime/datetime.module +++ b/core/modules/datetime/datetime.module @@ -27,6 +27,28 @@ 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 allows you to create fields for storing dates and time. It also provides a form API element called datetime for use in programming modules. 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 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('Date fields can be displayed using two formatters: the Plain fotmatter which uses the ISO format and the Default formatter which uses human readable formats.') . '
'; + $output .= '
' . t('Validating dates') . '
'; + $output .= '
' . t('Date fields are validated when the content is saved.') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_element_info(). */ function datetime_element_info() {