You are here

function hacked_menu in Hacked! 6

Same name and namespace in other branches
  1. 5 hacked.module \hacked_menu()
  2. 6.2 hacked.module \hacked_menu()
  3. 7.3 hacked.module \hacked_menu()
  4. 7.2 hacked.module \hacked_menu()

Implementation of hook_menu().

File

./hacked.module, line 23
The Hacked! module, shows which project have been changed since download.

Code

function hacked_menu() {
  $items = array();
  $items['admin/reports/hacked'] = array(
    'title' => 'Hacked',
    'description' => 'Get a code hacking report about your installed modules and themes.',
    'page callback' => 'hacked_reports_hacked',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 10,
  );
  $items['admin/reports/hacked/%hacked_project'] = array(
    'title callback' => 'hacked_reports_hacked_details_title',
    'title arguments' => array(
      3,
    ),
    'page callback' => 'hacked_reports_hacked_details',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'hacked.details.inc',
  );
  $items['admin/reports/hacked/%hacked_project_nocache/diff/%hacked_tail'] = array(
    'title callback' => 'hacked_reports_hacked_diff_title',
    'title arguments' => array(
      3,
      5,
    ),
    'load arguments' => array(
      '%map',
      '%index',
    ),
    'page callback' => 'hacked_reports_hacked_diff',
    'page arguments' => array(
      3,
      5,
    ),
    'access arguments' => array(
      'view diffs of changed files',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'hacked.diff.inc',
  );
  $items['admin/reports/hacked-export'] = array(
    'title' => 'Export from Hacked! cache',
    'page callback' => 'hacked_reports_export_select',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'hacked.export.inc',
  );
  $items['admin/reports/hacked-export/%'] = array(
    'title' => 'Export from Hacked! cache',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hacked_reports_exports_export_form',
      3,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'hacked.export.inc',
  );
  return $items;
}