You are here

function wysiwyg_menu in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 wysiwyg.module \wysiwyg_menu()
  2. 5 wysiwyg.module \wysiwyg_menu()
  3. 6.2 wysiwyg.module \wysiwyg_menu()
  4. 6 wysiwyg.module \wysiwyg_menu()

Implementation of hook_menu().

File

./wysiwyg.module, line 63

Code

function wysiwyg_menu() {
  $items['admin/config/content/wysiwyg'] = array(
    'title' => 'Wysiwyg profiles',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'wysiwyg_profile_overview',
    ),
    'description' => 'Configure client-side editors.',
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'wysiwyg.admin.inc',
  );
  $items['admin/config/content/wysiwyg/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/content/wysiwyg/profile/%wysiwyg_ui_profile_cache'] = array(
    'title callback' => 'wysiwyg_admin_profile_title',
    'title arguments' => array(
      5,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'wysiwyg_profile_form',
      5,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'wysiwyg.admin.inc',
  );
  $items['admin/config/content/wysiwyg/profile/%wysiwyg_ui_profile_cache/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/content/wysiwyg/profile/%wysiwyg_ui_profile_cache/delete'] = array(
    'title' => 'Remove',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'wysiwyg_profile_delete_confirm',
      5,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'wysiwyg.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/config/content/wysiwyg/profile/%wysiwyg_ui_profile_cache/break-lock'] = array(
    'title' => 'Break lock',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'wysiwyg_profile_break_lock_confirm',
      5,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'wysiwyg.admin.inc',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
  );

  // @see wysiwyg_dialog()
  $items['wysiwyg/%'] = array(
    'page callback' => 'wysiwyg_dialog',
    'page arguments' => array(
      1,
    ),
    'delivery callback' => 'wysiwyg_deliver_dialog_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'wysiwyg.dialog.inc',
  );
  $items['wysiwyg_theme/%'] = array(
    'theme callback' => '_wysiwyg_theme_callback',
    'theme arguments' => array(
      1,
    ),
    'page callback' => '_wysiwyg_theme_check_active',
    'page arguments' => array(
      1,
    ),
    'delivery callback' => '_wysiwyg_delivery_dummy',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}