function pasteformat_menu in Paste Format (filter, clean-up pasted text) 7
Same name and namespace in other branches
- 6 pasteformat.module \pasteformat_menu()
Implements hook_menu().
File
- ./
pasteformat.module, line 21 - Main file for Paste Format module.
Code
function pasteformat_menu() {
$items = array(
'admin/config/content/pasteformat' => array(
'title' => 'Paste Format',
'description' => 'Configure Paste Format settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pasteformat_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer site configuration',
),
'file' => 'pasteformat.admin.inc',
'type' => MENU_NORMAL_ITEM,
),
'pasteformat/ajax/pasteformat_cleanup' => array(
'page callback' => 'pasteformat_cleanup',
'access callback' => 'user_access',
'access arguments' => array(
'use pasteformat',
),
'type' => MENU_CALLBACK,
),
);
return $items;
}