You are here

function bueditor_plus_menu in BUEditor Plus 7

Same name and namespace in other branches
  1. 7.2 bueditor_plus.module \bueditor_plus_menu()

Implements hook_menu().

File

./bueditor_plus.module, line 54
Overrides default BUEditor textarea settling and implements controls based upon text formats.

Code

function bueditor_plus_menu() {
  $items = array();
  $path = 'admin/config/content/bueditor';
  $items[$path . '/profile/new'] = array(
    'title' => 'Add New BUEditor Profile',
    'description' => 'Create a profile to assign to field instances.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bueditor_plus_profile_form',
    ),
    'access arguments' => array(
      'administer bueditor',
    ),
    'file' => 'bueditor_plus.admin.inc',
    'type' => MENU_LOCAL_ACTION,
  );
  $items[$path . '/profile/edit/%bueditor_plus_profile'] = array(
    'title' => 'Edit BUEditor Profile',
    'description' => 'Create a profile to assign to field instances.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bueditor_plus_profile_form',
      6,
    ),
    'access arguments' => array(
      'administer bueditor',
    ),
    'file' => 'bueditor_plus.admin.inc',
  );
  $items[$path . '/profile/delete/%bueditor_plus_profile'] = array(
    'title' => 'Delete BUEditor Profile',
    'description' => 'Delete a BUEditor profile.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bueditor_plus_profile_delete_form',
      6,
    ),
    'access arguments' => array(
      'administer bueditor',
    ),
    'file' => 'bueditor_plus.admin.inc',
  );
  return $items;
}