You are here

function opigno_menu in Opigno 7

Same name and namespace in other branches
  1. 7.0 opigno.module \opigno_menu()

Implements hook_menu().

File

./opigno.module, line 13
Contains all hook_implementations and module specific API.

Code

function opigno_menu() {
  $items = array(
    'node/%node/tools' => array(
      'title' => 'Tools',
      'access callback' => 'opigno_access_tools',
      'access arguments' => array(
        1,
      ),
      'page callback' => 'opigno_tools_page',
      'page arguments' => array(
        1,
      ),
      'type' => MENU_LOCAL_TASK,
      'weight' => 10,
    ),
    'admin/opigno-statistics' => array(
      'title' => 'Opigno Statistics',
      'page callback' => 'opigno_statistics_overview_page',
      'access callback' => 'opigno_statistics_overview_access',
    ),
    'admin/opigno' => array(
      'title' => "Opigno Administration",
      'page callback' => 'opigno_admin_overview_page',
      'access arguments' => array(
        'access opigno administration pages',
      ),
    ),
    'admin/opigno/students' => array(
      'title' => "Student management",
      'description' => "Tools for managing the platform students",
      'position' => 'left',
      'weight' => -10,
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'access administration pages',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'admin/opigno/system' => array(
      'title' => "Administration",
      'description' => "Manage Opigno settings and users",
      'position' => 'left',
      'weight' => -5,
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'access administration pages',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'admin/opigno/appearance' => array(
      'title' => "Appearance",
      'description' => "Manage Opigno theme settings and appearance",
      'position' => 'right',
      'weight' => -5,
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'access administration pages',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'admin/opigno/content' => array(
      'title' => "Content",
      'description' => "Manage Opigno courses, quizzes, etc",
      'position' => 'right',
      'weight' => -10,
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'access administration pages',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
  );
  return $items;
}