function form_builder_menu in Form Builder 7
Same name and namespace in other branches
- 6 form_builder.module \form_builder_menu()
- 7.2 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/structure/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,
),
'type' => MENU_CALLBACK,
'file' => 'form_builder.admin.inc',
'file path' => drupal_get_path('module', 'form_builder') . '/includes',
);
$items['admin/structure/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/structure/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,
),
'type' => MENU_CALLBACK,
'file' => 'form_builder.admin.inc',
'file path' => drupal_get_path('module', 'form_builder') . '/includes',
'delivery callback' => 'form_builder_deliver_ajax_or_html',
);
$items['admin/structure/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,
),
'type' => MENU_CALLBACK,
'file' => 'form_builder.admin.inc',
'file path' => drupal_get_path('module', 'form_builder') . '/includes',
'delivery callback' => 'form_builder_deliver_ajax_or_html',
);
$items['admin/structure/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,
),
'type' => MENU_CALLBACK,
'file' => 'form_builder.admin.inc',
'file path' => drupal_get_path('module', 'form_builder') . '/includes',
);
return $items;
}