diff --git a/core/modules/datetime/datetime.module b/core/modules/datetime/datetime.module index 0da06cb..b13e641 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 form elements and a datetime field type. Datetime can be either an idealized naive 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' => url('admin/help/field'), '@field_ui' => url('admin/help/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' => url('admin/help/field_ui'))) . '
'; + $output .= '
' . t('Displaying datetime') . '
'; + $output .= '
' . t('Datetime can be displayed as plain text (ISO) or as human readable date using one of built-in formats.') . '
'; + $output .= '
' . t('Validating Datetime value') . '
'; + $output .= '
' . t('Datetime fields are validated when the content is saved.') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_element_info(). */ function datetime_element_info() {