function bueditor_menu in BUEditor 7
Same name and namespace in other branches
- 5 bueditor.module \bueditor_menu()
- 6.2 bueditor.module \bueditor_menu()
- 6 bueditor.module \bueditor_menu()
Implements hook_menu().
File
- ./
bueditor.module, line 11 - Implements the necessary hooks for the editor to work properly.
Code
function bueditor_menu() {
$items = array();
$path = 'admin/config/content/bueditor';
$common = array(
'access arguments' => array(
'administer bueditor',
),
'file' => 'admin/bueditor.admin.inc',
);
$form = array(
'page callback' => 'drupal_get_form',
'type' => MENU_VISIBLE_IN_BREADCRUMB,
) + $common;
$items[$path] = $common + array(
'title' => 'BUEditor',
'description' => 'Customize your text editor.',
'page callback' => 'bueditor_admin',
);
$items[$path . '/new'] = $form + array(
'title' => 'Add new editor',
'page arguments' => array(
'bueditor_editor_form',
),
);
$items[$path . '/import'] = $form + array(
'title' => 'Import editor',
'page arguments' => array(
'bueditor_editor_import_form',
),
);
$items[$path . '/%bueditor_editor'] = $form + array(
'title' => 'Editor settings',
'page arguments' => array(
'bueditor_editor_form',
4,
),
);
$items[$path . '/%bueditor_editor/delete'] = $form + array(
'title' => 'Delete editor',
'page arguments' => array(
'bueditor_delete_form',
4,
),
);
return $items;
}