You are here

function kaltura_menu in Kaltura 6.2

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

File

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

Code

function kaltura_menu() {
  $items = array();
  $items['admin/settings/kaltura'] = array(
    'title' => 'Kaltura',
    'file' => 'includes/kaltura.admin.inc',
    'description' => 'Server integration settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'kaltura_settings_form',
    ),
    'access arguments' => array(
      'administer kaltura',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/kaltura/general'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/kaltura/entries'] = array(
    'title' => 'List of Kaltura Items',
    'page callback' => 'kaltura_list_entries',
    'access callback' => TRUE,
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
  );
  $items['admin/settings/kaltura/entries/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['admin/settings/kaltura/install'] = array(
    'title' => 'Kaltura Integration',
    'file' => 'includes/kaltura.install.inc',
    'description' => 'Configure your site for Kaltura integration.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'kaltura_installation_form',
    ),
    'access arguments' => array(
      'administer kaltura',
    ),
    'type' => MENU_CALLBACK,
  );
  $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',
    'file' => 'includes/kaltura.themeing.inc',
    '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',
    'file' => 'includes/kaltura.themeing.inc',
    'page callback' => 'kaltura_simple_editor',
    'access arguments' => array(
      'access kaltura widgets',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['kaltura/advanced_editor'] = array(
    'title' => 'Advanced Editor',
    'file' => 'includes/kaltura.themeing.inc',
    'page callback' => 'kaltura_advanced_editor',
    'access arguments' => array(
      'access kaltura widgets',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['kaltura/insert_widget'] = array(
    'title' => 'Please Wait...',
    'file' => 'includes/kaltura.themeing.inc',
    '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;
}