You are here

function angular_media_menu in CKEditor Widgets 7

Implements hook_menu().

File

./angular_media.module, line 73
Implementation of angular_media.module.

Code

function angular_media_menu() {
  $items['admin/config/media/angular-media'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'Angular Media',
    'description' => 'Set up default settings for angular media dialogs',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'angular_media_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'includes/angular_media.admin.inc',
  );
  $items['api/angular-media/upload'] = array(
    'title' => 'Handles uploads',
    'page callback' => 'angular_media_callback_upload',
    'type' => MENU_CALLBACK,
    'access callback' => 'angular_media_upload_access',
    'access arguments' => array(
      'access content',
    ),
  );
  $items['api/angular-media/file'] = array(
    'title' => 'Handles uploads',
    'page callback' => 'angular_media_callback_file',
    'page arguments' => array(
      3,
    ),
    'type' => MENU_CALLBACK,
    'access callback' => 'angular_media_file_access',
    'access arguments' => array(
      'access content',
    ),
  );
  $items['angular_media-test'] = array(
    'title' => 'Test Plupload',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'angular_media_test',
    ),
    // @todo: change this to something appropriate, not sure what.
    'access arguments' => array(
      'Administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}