You are here

function date_time_day_help in Date time day 8

Implements hook_help().

File

./date_time_day.module, line 13
Main module file.

Code

function date_time_day_help($route_name) {
  switch ($route_name) {
    case 'help.page.date_time_day':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The date time day module provides a date time day field that stores day, start and end times. See the <a href=":field">Field module help</a> page for general information on fields and how to create and manage them.', [
        ':field' => Url::fromRoute('help.page', [
          'name' => 'field',
        ])
          ->toString(),
      ]) . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Managing and displaying date time day fields') . '</dt>';
      $output .= '<dd>' . t('The <em>settings</em> and the <em>display</em> of the date time day field can be configured separately. See the <a href=":field_ui">Field UI help</a> for more information on how to manage fields and their display.', [
        ':field_ui' => \Drupal::moduleHandler()
          ->moduleExists('field_ui') ? Url::fromRoute('help.page', [
          'name' => 'field_ui',
        ])
          ->toString() : '#',
      ]) . '</dd>';
      $output .= '<dt>' . t('Displaying dates') . '</dt>';
      $output .= '<dd>' . t('Dates can be displayed using the <em>Date time day</em> or the <em>Default</em> formatter.') . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}