You are here

function ckeditor_htmlbuttons_menu in CKEditor HTML Buttons (for WYSIWYG and CKEditor) 7

Implements hook_menu().

File

./ckeditor_htmlbuttons.module, line 22
Basic module file for CKEditor HTML Buttons.

Code

function ckeditor_htmlbuttons_menu() {
  $items = array();

  // Buttons overview settings page.
  $items['admin/config/content/ckeditor-htmlbuttons'] = array(
    'title' => 'CKEditor HTML Buttons',
    'description' => 'Create and modify CKEditor HTML Buttons',
    'page callback' => 'ckeditor_htmlbuttons_overview',
    'access arguments' => array(
      'administer ckeditor html buttons',
    ),
    'file' => 'ckeditor_htmlbuttons.admin.inc',
  );

  // List buttons.
  $items['admin/config/content/ckeditor-htmlbuttons/list'] = array(
    'title' => 'List Buttons',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );

  // Add button.
  $items['admin/config/content/ckeditor-htmlbuttons/add'] = array(
    'title' => 'Add Button',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ckeditor_htmlbuttons_button_form',
    ),
    'access arguments' => array(
      'administer ckeditor html buttons',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'ckeditor_htmlbuttons.admin.inc',
  );

  // Edit button.
  $items['admin/config/content/ckeditor-htmlbuttons/edit/%ckeditor_htmlbuttons_button'] = array(
    'title' => 'Edit Button',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ckeditor_htmlbuttons_button_form',
      5,
    ),
    'access arguments' => array(
      'administer ckeditor html buttons',
    ),
    'type' => MENU_CALLBACK,
    'parent' => 'admin/config/content/ckeditor-htmlbuttons',
    'file' => 'ckeditor_htmlbuttons.admin.inc',
  );

  // Delete button.
  $items['admin/config/content/ckeditor-htmlbuttons/delete'] = array(
    'title' => 'Delete Button',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ckeditor_htmlbuttons_delete_confirm',
    ),
    'access arguments' => array(
      'administer ckeditor html buttons',
    ),
    'file' => 'ckeditor_htmlbuttons.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}