You are here

function revision_deletion_help in Revision Deletion 7

Same name and namespace in other branches
  1. 5 revision_deletion.module \revision_deletion_help()
  2. 6 revision_deletion.module \revision_deletion_help()

Implements hook_help().

File

./revision_deletion.module, line 80

Code

function revision_deletion_help($path, $arg) {
  switch ($path) {
    case 'admin/help#revision_deletion':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This module will greatly speed up the task of deleting old revisions of nodes. The database clutter and space can be quickly reclaimed as this module, on cron runs, will delete aged revisions (never the current revision) of nodes older than a set period of time.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Configuring content types') . '</dt>';
      $output .= '<dd>' . t('To configure the module visit the <a href="@config-page">Revision Deletion Settings</a> page, possible settings include node type, the age of node revision before being deleted, along with a cron frequency setting. For this you need the <em>Administer Revision Deletion</em> permission.', array(
        '@config-page' => url('admin/config/content/revision_deletion/settings'),
      )) . '</dd>';
      $output .= '<dt>' . t('Deleting revisions') . '</dt>';
      $output .= '<dd>' . t('Deletions will occurs on cron run or can be manually run at <a href="@list-page">Revision Deletion</a> page where a review screen will display all the node revisions that meet the settings criteria.', array(
        '@list-page' => url('admin/config/content/revision_deletion'),
      )) . '</dd>';
      $output .= '</dl>';
      $output .= '</dl>';
      return $output;
    case 'admin/config/content/revision_deletion/settings':
      return '<p>' . t('These settings control which revisions may be deleted, how often, and from which types of content.') . '</p>';
  }
}