You are here

function media_wysiwyg_menu in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_menu()
  2. 7.3 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_menu()

Implements hook_menu().

File

modules/media_wysiwyg/media_wysiwyg.module, line 51
Primarily Drupal hooks.

Code

function media_wysiwyg_menu() {
  $items = array();
  $items['media/%file/format-form'] = array(
    'title' => 'Style selector',
    'description' => 'Choose a format for a piece of media',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'media_wysiwyg_format_form',
      1,
    ),
    'access callback' => 'media_wysiwyg_access',
    'access arguments' => array(
      'view',
      1,
    ),
    'file' => 'includes/media_wysiwyg.pages.inc',
    'theme callback' => 'media_dialog_get_theme_name',
    'type' => MENU_CALLBACK,
  );
  return $items;
}