You are here

function xbbcode_menu in Extensible BBCode 7

Same name and namespace in other branches
  1. 8 xbbcode.module \xbbcode_menu()
  2. 5 xbbcode.module \xbbcode_menu()
  3. 6 xbbcode.module \xbbcode_menu()

Implements hook_menu().

File

./xbbcode.module, line 31
The main module file containing hook implementations.

Code

function xbbcode_menu() {
  $menu['admin/config/content/xbbcode/settings'] = array(
    'title' => 'Handlers',
    'description' => 'Enable or disable tags and choose the module that handles them.',
    'page callback' => 'drupal_get_form',
    'type' => MENU_LOCAL_TASK,
    'page arguments' => array(
      'xbbcode_settings_handlers',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'xbbcode.admin.inc',
  );
  $menu['admin/config/content/xbbcode/tags'] = array(
    'title' => 'Custom tags',
    'description' => 'Add or modify your own tags',
    'page callback' => 'drupal_get_form',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'page arguments' => array(
      'xbbcode_custom_tags',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'xbbcode.admin.inc',
  );
  $menu['admin/config/content/xbbcode'] = array(
    'title' => 'BBCode',
    'description' => 'Add or modify custom BBCode tags for your text formats.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'xbbcode_custom_tags',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'xbbcode.admin.inc',
  );
  $menu['admin/config/content/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',
      5,
    ),
    'file' => 'xbbcode.admin.inc',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $menu;
}