You are here

function user_rev_diff_menu in User Revision 7.2

Implementation of hook_menu().

File

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

Code

function user_rev_diff_menu() {
  $items = array();
  $items['user/%user/revisions/account/diff'] = array(
    'title' => 'Diff',
    'page callback' => 'user_rev_diff_diffs_show',
    'page arguments' => array(
      1,
      5,
      6,
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => '_user_revision_access',
    'access arguments' => array(
      1,
      array(
        'view user revisions',
        'view own user revisions',
      ),
    ),
    'file' => 'user_rev_diff.pages.inc',
  );
  $items['user/%user/revisions/account/latest'] = array(
    'title' => 'Show latest difference',
    'page callback' => 'user_rev_diff_latest',
    'page arguments' => array(
      1,
    ),
    'type' => MENU_CALLBACK,
    'access callback' => '_user_revision_access',
    'access arguments' => array(
      1,
      array(
        'view user revisions',
        'view own user revisions',
      ),
    ),
    'file' => 'user_rev_diff.pages.inc',
  );
  return $items;
}