function formdefaults_menu in Form Defaults 6
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()
- 7 formdefaults.module \formdefaults_menu()
Implements hook_menu.
File
- ./
formdefaults.module, line 28
Code
function formdefaults_menu() {
global $user;
$items = array();
$items['formdefaults'] = array(
'title' => t('Edit Form'),
'description' => t('Edit a form'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'formdefaults_edit',
),
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/formdefaults'] = array(
'title' => t('Form Labels and Text'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'formdefaults_enable',
),
'description' => t('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/build/formdefaults/control'] = array(
'title' => t('Control'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
$items['admin/build/formdefaults/manage'] = array(
'title' => t('Manage'),
'page arguments' => array(
'formdefaults_manage',
),
'type' => MENU_LOCAL_TASK,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
$items['admin/build/formdefaults/export'] = array(
'title' => t('Export'),
'page arguments' => array(
'formdefaults_export',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
$items['admin/build/formdefaults/import'] = array(
'title' => t('Import'),
'page arguments' => array(
'formdefaults_import',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'access callback' => 'user_access',
'access arguments' => array(
'change form labels',
),
);
return $items;
}