You are here

function form_builder_menu in Form Builder 6

Same name and namespace in other branches
  1. 7.2 form_builder.module \form_builder_menu()
  2. 7 form_builder.module \form_builder_menu()

Implementation of hook_menu().

File

./form_builder.module, line 13
form_builder.module Generic form building framework and user interface.

Code

function form_builder_menu() {
  $items = array();
  $items['admin/build/form-builder/add'] = array(
    'title' => 'Add field',
    'description' => 'Add a field to a form.',
    'page callback' => 'form_builder_add_page',
    'access callback' => 'form_builder_menu_field_access',
    'access arguments' => array(
      'add',
      4,
      5,
      6,
    ),
    'file' => 'includes/form_builder.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/form-builder/clone'] = array(
    'title' => 'Clone field',
    'description' => 'Clone a field within a form.',
    'page callback' => 'form_builder_clone_page',
    'access callback' => 'form_builder_menu_field_access',
    'access arguments' => array(
      'clone',
      4,
      5,
      6,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'form_builder.admin.inc',
    'file path' => drupal_get_path('module', 'form_builder') . '/includes',
  );
  $items['admin/build/form-builder/configure'] = array(
    'title' => 'Configure field',
    'description' => 'Configure a field within a form.',
    'page callback' => 'form_builder_configure_page',
    'access callback' => 'form_builder_menu_field_access',
    'access arguments' => array(
      'configure',
      4,
      5,
      6,
    ),
    'file' => 'includes/form_builder.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/form-builder/remove'] = array(
    'title' => 'Remove field',
    'description' => 'Remove a field from a form.',
    'page callback' => 'form_builder_remove_page',
    'access callback' => 'form_builder_menu_field_access',
    'access arguments' => array(
      'remove',
      4,
      5,
      6,
    ),
    'file' => 'includes/form_builder.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/form-builder/json'] = array(
    'title' => 'JSON representation',
    'description' => 'Display a form field as a JSON string.',
    'page callback' => 'form_builder_field_json',
    'access callback' => 'form_builder_menu_field_access',
    'access arguments' => array(
      'view',
      4,
      5,
      6,
    ),
    'file' => 'includes/form_builder.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}