You are here

function media_wysiwyg_menu in D7 Media 7.3

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

Implements hook_menu().

File

modules/media_wysiwyg/media_wysiwyg.module, line 52
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,
  );
  $items['admin/reports/status/upgrade-media-tokens'] = array(
    'title' => 'Rebuild media tokens',
    'description' => "Scans content for media tokens and upgrades them to the latest format version.",
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'media_wysiwyg_upgrade_content_tokens',
    'file' => 'includes/media_wysiwyg.pages.inc',
  );
  return $items;
}