function wysiwyg_menu in Wysiwyg 6.2
Same name and namespace in other branches
- 5.2 wysiwyg.module \wysiwyg_menu()
- 5 wysiwyg.module \wysiwyg_menu()
- 6 wysiwyg.module \wysiwyg_menu()
- 7.2 wysiwyg.module \wysiwyg_menu()
Implementation of hook_menu().
File
- ./
wysiwyg.module, line 11 - Integrates client-side editors with Drupal.
Code
function wysiwyg_menu() {
$items['admin/settings/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/settings/wysiwyg/profile/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/wysiwyg/profile/%wysiwyg_ui_profile_cache'] = array(
'title callback' => 'wysiwyg_admin_profile_title',
'title arguments' => array(
4,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'wysiwyg_profile_form',
4,
),
'access arguments' => array(
'administer filters',
),
'file' => 'wysiwyg.admin.inc',
);
$items['admin/settings/wysiwyg/profile/%wysiwyg_ui_profile_cache/edit'] = array(
'title' => 'Edit',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/wysiwyg/profile/%wysiwyg_ui_profile_cache/delete'] = array(
'title' => 'Remove',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'wysiwyg_profile_delete_confirm',
4,
),
'access arguments' => array(
'administer filters',
),
'file' => 'wysiwyg.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/settings/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',
4,
),
'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,
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'wysiwyg.dialog.inc',
);
return $items;
}