You are here

function new_relic_rpm_menu in New Relic 7

Implements hook_menu().

File

./new_relic_rpm.module, line 27
Drupal module implementing New Relic.

Code

function new_relic_rpm_menu() {
  $items['admin/content/new-relic-rpm'] = array(
    'title' => 'New Relic deployments',
    'description' => 'Mark a new deployment for this site.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'new_relic_rpm_deploy',
    ),
    'access arguments' => array(
      'create new relic rpm deployments',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'new_relic_rpm.settings.inc',
  );
  $items['admin/config/development/new-relic-rpm'] = array(
    'title' => 'New Relic settings',
    'description' => 'Alter settings and manage your New Relic Integration.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'new_relic_rpm_settings',
    ),
    'access arguments' => array(
      'administer new relic rpm',
    ),
    'file' => 'new_relic_rpm.settings.inc',
  );
  $items['admin/reports/new-relic-rpm'] = array(
    'title' => 'New Relic reports',
    'description' => 'View New Relic reports and statistics.',
    'page callback' => 'new_relic_rpm_reporting',
    'access arguments' => array(
      'view new relic rpm reports',
    ),
    'file' => 'new_relic_rpm.reports.inc',
  );
  $items['admin/reports/new-relic-rpm/details/%'] = array(
    'title' => 'Application Details',
    'description' => 'Get details for a specific application.',
    'page callback' => 'new_relic_rpm_reporting_details',
    'page arguments' => array(
      4,
      5,
    ),
    'access arguments' => array(
      'view new relic rpm reports',
    ),
    'file' => 'new_relic_rpm.reports.inc',
  );
  return $items;
}