You are here

function pasteformat_menu in Paste Format (filter, clean-up pasted text) 6

Same name and namespace in other branches
  1. 7 pasteformat.module \pasteformat_menu()

Implements hook_menu().

File

./pasteformat.module, line 12

Code

function pasteformat_menu() {
  $items = array(
    'admin/settings/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;
}