You are here

function kaltura_menu in Kaltura 6

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

File

./kaltura.module, line 42
kaltura integration module - core functions

Code

function kaltura_menu() {
  $items = array();
  $items['admin/settings/kaltura'] = array(
    'title' => 'Kaltura',
    'file' => 'includes/kaltura.admin.inc',
    'description' => 'List of Kaltura administration pages.',
    'page callback' => 'kaltura_settings_main',
    'access arguments' => array(
      'administer kaltura',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/kaltura/general'] = array(
    'title' => 'Server Integration Settings',
    'file' => 'includes/kaltura.admin.inc',
    'description' => 'Kaltura\'s server integration settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'kaltura_settings_form',
    ),
    'access arguments' => array(
      'administer kaltura',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => -10,
  );
  $items['admin/settings/kaltura/kaltura_credits_settings'] = array(
    'title' => 'Kaltura Credits Settings',
    'file' => 'includes/kaltura.admin.inc',
    'description' => 'Kaltura Credits Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'kaltura_credits_settings_form',
    ),
    'access arguments' => array(
      'administer kaltura',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 10,
  );
  $items['admin/settings/kaltura/import'] = array(
    'title' => 'Importing Entries from Kaltura to Drupal',
    'file' => 'includes/kaltura.admin.inc',
    'description' => 'import your partner\'s entries from kaltura\'s server to drupal, as nodes',
    'page callback' => 'kaltura_import_entries_page',
    'access arguments' => array(
      'administer kaltura',
    ),
    'type' => MENU_CALLBACK,
    'weight' => 0,
  );
  $items['kaltura/notification_handler'] = array(
    'title' => 'Drupal Notification Handler',
    'file' => 'includes/kaltura.notification.inc',
    'page callback' => 'kaltura_notification_handler',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['kaltura/contribution_wizard/%'] = array(
    'title' => 'Contribution Wizard',
    'page callback' => 'kaltura_contribution_wizard',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'access kaltura widgets',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['kaltura/simple_editor'] = array(
    'title' => 'Simple Editor',
    'page callback' => 'kaltura_simple_editor',
    'access arguments' => array(
      'access kaltura widgets',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['kaltura/insert_widget'] = array(
    'title' => 'Please Wait...',
    'page callback' => 'kaltura_insert_widget',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['kaltura/entries'] = array(
    'title' => 'List Of Entries',
    'page callback' => 'kaltura_list_entries',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}