You are here

function diff_help in Diff 7.2

Same name and namespace in other branches
  1. 8 diff.module \diff_help()
  2. 5.2 diff.module \diff_help()
  3. 5 diff.module \diff_help()
  4. 6.2 diff.module \diff_help()
  5. 6 diff.module \diff_help()
  6. 7.3 diff.module \diff_help()

Implements hook_help().

File

./diff.module, line 16
Provides functionality to show a diff between two node revisions.

Code

function diff_help($path, $arg) {
  switch ($path) {
    case 'admin/help#diff':
      $output = '<p>' . t('The diff module overwrites the normal revisions view. The revisions table is enhanced with a possibility to view the difference between two node revisions. Users with the %view_revisions permission will also be able to view the changes between any two selected revisions. You may disable this for individual content types on the content type configuration page. This module also provides a nifty %preview_changes button while editing a post.', array(
        '%preview_changes' => t('View changes'),
        '%view_revisions' => t('view revisions'),
      )) . '</p>';
      return $output;
    case 'node/%/revisions/%/view':

      // the following string is copied from string copied from node_help('node/%/revisions')
      return '<p>' . t('The revisions let you track differences between multiple versions of a post.') . '</p>';
    case 'node/%/revisions/view/%/%':
      return '<p>' . t('Comparing two revisions:') . '</p>';
  }
}