You are here

function casetracker_dashboard_menu in Case Tracker 5

Implementation of hook_menu().

File

./casetracker_dashboard.module, line 32

Code

function casetracker_dashboard_menu($may_cache) {
  global $user;
  $items = array();
  if ($may_cache) {

    /* -- user accessible menu items ---------------------------------------- */
    $items[] = array(
      'access' => user_access('access case tracker dashboard'),
      'callback' => 'casetracker_dashboard_overview',
      'path' => 'casetracker/dashboard',
      'title' => t('Dashboard'),
      'weight' => 2,
    );
    $items[] = array(
      'access' => user_access('administer case tracker'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'casetracker_dashboard_admin_form',
      ),
      'description' => t('Configure the Case Tracker dashboard options with these settings.'),
      'path' => 'admin/settings/casetracker/dashboard',
      'title' => t('Dashboard'),
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}