function formdefaults_menu in Form Defaults 5
Same name and namespace in other branches
- 5.3 formdefaults.module \formdefaults_menu()
- 5.2 formdefaults.module \formdefaults_menu()
- 6.2 formdefaults.module \formdefaults_menu()
- 6 formdefaults.module \formdefaults_menu()
- 7 formdefaults.module \formdefaults_menu()
Implements hook_menu.
File
- ./
formdefaults.module, line 27
Code
function formdefaults_menu($may_cache) {
global $user;
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'formdefaults',
'title' => t('Edit Form'),
'description' => t('Edit a form'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'formdefaults_edit',
),
'access' => user_access('change form labels'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/build/formdefaults',
'title' => t('Form Labels and Text'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'formdefaults_enable',
),
'description' => t('Turns on or off the editing controls to allow editing form labels and descriptions'),
'access' => user_access('change form labels'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}