You are here

function user_rev_diff_help in User Revision 7.2

Implementation of hook_help().

File

diff/user_rev_diff.module, line 11
Provides functionality to show a diff between two user revisions.

Code

function user_rev_diff_help($path, $arg) {
  switch ($path) {
    case 'admin/help#diff':
      $output = '<p>' . t('The user revisions diff module overwrites the normal revisions view. The revisions table is enhanced with a possibility to view the difference between two user 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 'user/%/revisions/account/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 user.') . '</p>';
    case 'user/%/revisions/account/diff/%/%':
      return '<p>' . t('Comparing two revisions:') . '</p>';
  }
}