function xbbcode_menu in Extensible BBCode 6
Same name and namespace in other branches
- 8 xbbcode.module \xbbcode_menu()
- 5 xbbcode.module \xbbcode_menu()
- 7 xbbcode.module \xbbcode_menu()
File
- ./
xbbcode.module, line 7
Code
function xbbcode_menu() {
$items = array();
xbbcode_rebuild_handlers();
$menu['admin/settings/xbbcode'] = array(
'title' => 'XBBCode Settings',
'description' => 'Enable or disable tags and choose the module that handles them.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'xbbcode_settings_handlers',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'xbbcode.admin.inc',
);
$menu['admin/settings/xbbcode/settings'] = array(
'title' => 'XBBCode Settings',
'description' => 'Enable or disable tags and choose the module that handles them.',
'page callback' => 'drupal_get_form',
'type' => MENU_DEFAULT_LOCAL_TASK,
'page arguments' => array(
'xbbcode_settings_handlers',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'xbbcode.admin.inc',
);
$menu['admin/settings/xbbcode/tags'] = array(
'title' => 'Custom Tags',
'description' => 'Add or modify your own tags',
'page callback' => 'drupal_get_form',
'type' => MENU_LOCAL_TASK,
'page arguments' => array(
'xbbcode_custom_tags',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'xbbcode.admin.inc',
);
$menu['admin/settings/xbbcode/tags/%/edit'] = array(
'type' => MENU_CALLBACK,
'title' => 'Editing tag',
'description' => 'Edit a custom tag',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'xbbcode_custom_tags',
4,
),
'file' => 'xbbcode.admin.inc',
'access arguments' => array(
'administer site configuration',
),
);
return $menu;
}