You are here

function bueditor_menu in BUEditor 6

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_menu()
  2. 6.2 bueditor.module \bueditor_menu()
  3. 7 bueditor.module \bueditor_menu()

Implementation of hook_menu().

File

./bueditor.module, line 6

Code

function bueditor_menu() {
  $items = array();
  $path = 'admin/settings/bueditor';
  $access = array(
    'administer bueditor',
  );
  $items[$path] = array(
    'title' => 'BUEditor',
    'description' => 'Customize your text editor.',
    'page callback' => 'bueditor_admin',
    'access arguments' => $access,
    'file' => 'bueditor.admin.inc',
  );
  $items[$path . '/new'] = array(
    'title' => 'Add new editor',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bueditor_editor_form',
    ),
    'access arguments' => $access,
    'type' => MENU_CALLBACK,
    'file' => 'bueditor.admin.inc',
  );
  $items[$path . '/%bueditor_editor'] = array(
    'title' => 'Editor settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bueditor_editor_form',
      3,
    ),
    'access arguments' => $access,
    'type' => MENU_CALLBACK,
    'file' => 'bueditor.admin.inc',
  );
  $items[$path . '/%bueditor_editor/delete'] = array(
    'title' => 'Delete editor',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bueditor_delete_form',
      3,
    ),
    'access arguments' => $access,
    'type' => MENU_CALLBACK,
    'file' => 'bueditor.admin.inc',
  );
  return $items;
}