You are here

function date_tools_help in Date 6.2

Same name and namespace in other branches
  1. 8 date_tools/date_tools.module \date_tools_help()
  2. 7.3 date_tools/date_tools.module \date_tools_help()
  3. 7 date_tools/date_tools.module \date_tools_help()
  4. 7.2 date_tools/date_tools.module \date_tools_help()

Implementation of hook_help().

File

date_tools/date_tools.module, line 6

Code

function date_tools_help($section, $arg) {
  switch ($section) {
    case 'admin/content/date/tools':
      return '<p>' . t('Tools for creating and importing dates and calendars.') . '</p>';
    case 'admin/content/date/tools/change':
      return '<p>' . t('Change a date field from one type to another. Very experimental, use at your own risk!') . '</p>';
    case 'admin/content/date/tools/date_wizard':
      $disabled_modules = date_tools_wizard_disabled_modules(array(
        'popup',
        'repeat',
        'linked',
      ));
      if (!empty($disabled_modules)) {
        drupal_set_message(t('The following modules are required for the wizard to work:') . '<ul><li>' . implode('</li><li>', $disabled_modules) . '</li></ul>', 'error');
      }
      $output = t('Fill out the following form to auto-create a date content type, with a datetime field and matching pre-configured calendar. A calendar and upcoming events block will be created, an ical feed will be added to the calendar, and the mini calendar, calendar legend, and upcoming events blocks will be added to the sidebar of the default theme. Nodes created from this new content type will include a link to the calendar, and the calendar will have a link to the \'add new date\' form. If the Signup module is enabled, Signups will also be enabled for this field. You can also add new date fields to an existing content type by entering the existing content type name instead of creating a new one.') . '</p><p>' . t('Only a limited set of options are displayed here to make this easy to set up. Once the date has been created you will be able to make other changes to the date settings and add other fields to your new content type on the Manage fields screen, and make changes to the calendar on the Views edit page.') . '</p>';
      return $output;
  }
}