function formdefaults_menu in Form Defaults 7
Same name and namespace in other branches
- 5.3 formdefaults.module \formdefaults_menu()
- 5 formdefaults.module \formdefaults_menu()
- 5.2 formdefaults.module \formdefaults_menu()
- 6.2 formdefaults.module \formdefaults_menu()
- 6 formdefaults.module \formdefaults_menu()
Implements hook_menu.
File
- ./
formdefaults.module, line 27
Code
function formdefaults_menu() {
global $user;
$items = array();
$items['formdefaults'] = array(
'title' => 'Edit Form',
'description' => 'Edit a form',
'page callback' => 'formdefaults_edit',
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
'file' => 'formdefaults.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/structure/formdefaults'] = array(
'title' => 'Form Labels and Text',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'formdefaults_enable',
),
'description' => 'Turns on or off the editing controls to allow editing form labels and descriptions',
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'formdefaults.admin.inc',
);
$items['admin/structure/formdefaults/control'] = array(
'title' => 'Control',
'type' => MENU_DEFAULT_LOCAL_TASK,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
$items['admin/structure/formdefaults/manage'] = array(
'title' => 'Manage',
'page arguments' => array(
'formdefaults_manage',
),
'type' => MENU_LOCAL_TASK,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
$items['admin/structure/formdefaults/export'] = array(
'title' => 'Export',
'page arguments' => array(
'formdefaults_export',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
$items['admin/structure/formdefaults/import'] = array(
'title' => 'Import',
'page arguments' => array(
'formdefaults_import',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
return $items;
}