You are here

function total_control_menu in Total Control Admin Dashboard 7.2

Same name and namespace in other branches
  1. 6.2 total_control.module \total_control_menu()
  2. 6 total_control.module \total_control_menu()

Implements hook_menu().

Adds the total control dashboard

File

./total_control.module, line 42

Code

function total_control_menu() {
  $items = array();
  $items['admin/config/administration/control'] = array(
    'title' => 'Total Control Dashboard',
    'description' => 'Adjust dashboard settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'total_control_admin_settings',
    ),
    'access arguments' => array(
      'administer total control',
    ),
    'file' => 'total_control.admin.inc',
  );

  // Add a tab for the dashboard.
  $items['admin/dashboard/overview'] = array(
    'title' => 'Dashboard',
    'description' => 'Total Control admin dashboard',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -100,
  );
  return $items;
}