You are here

function kaltura_menu in Kaltura 5

Same name and namespace in other branches
  1. 6.2 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 46

Code

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