You are here

function archive_help in Archive 7.2

Same name and namespace in other branches
  1. 5 archive.module \archive_help()
  2. 6 archive.module \archive_help()
  3. 7 archive.module \archive_help()

Implementation of hook_help().

File

./archive.module, line 11
Implements a block and page showing an archive of all site content.

Code

function archive_help($path, $arg) {
  switch ($path) {
    case 'admin/help#archive':
      $output = '<p>' . t('The archive module allows your users to browse your content by its type and date of publication. The archive module interface, available at the path !archive_link, presents simple controls for selecting a year, month or day. All available posts published within this range are displayed beneath the control. Administrators may select the content types to be displayed. The archive module adds an <em>Archives</em> menu item to the default <em>Navigation</em> menu (the item is disabled by default), and displays the current month and year within an optional block.', array(
        '!archive_link' => l(t('archive'), 'archive'),
      )) . '</p>';
      $output .= '<p>' . t('You can') . '</p>';
      $output .= theme('item_list', array(
        'items' => array(
          t('view your !archive_link.', array(
            '!archive_link' => l(t('Archive'), 'archive'),
          )),
          t('enable, position and configure the <em>Current calendar month with archive links</em> block at the !blocks.', array(
            '!blocks' => l(t('blocks administration page'), 'admin/build/block'),
          )),
          t('enable or disable the <em>Archives</em> menu item on the !menu-administration.', array(
            '!menu-administration' => l(t('navigation menu administration page'), 'admin/build/menu-customize/navigation'),
          )),
        ),
      ));
      $output .= '<p>' . t('For more information, see the online handbook entry for !handbook-page.', array(
        '!handbook-page' => l(t('Archive module'), 'http://drupal.org/handbook/modules/archive'),
      )) . '</p>';
      return $output;
  }
}