summaryrefslogtreecommitdiff
path: root/modules/contact/contact.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/contact/contact.module')
-rw-r--r--modules/contact/contact.module31
1 files changed, 16 insertions, 15 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index 2cdb73077..37a47dc79 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -59,12 +59,6 @@ function contact_menu() {
'access arguments' => array('administer site-wide contact form'),
'file' => 'contact.admin.inc',
);
- $items['admin/structure/contact/list'] = array(
- 'title' => 'List',
- 'page callback' => 'contact_admin_categories',
- 'type' => MENU_DEFAULT_LOCAL_TASK,
- 'file' => 'contact.admin.inc',
- );
$items['admin/structure/contact/add'] = array(
'title' => 'Add category',
'page callback' => 'drupal_get_form',
@@ -90,15 +84,6 @@ function contact_menu() {
'type' => MENU_CALLBACK,
'file' => 'contact.admin.inc',
);
- $items['admin/structure/contact/settings'] = array(
- 'title' => 'Settings',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('contact_admin_settings'),
- 'access arguments' => array('administer site-wide contact form'),
- 'file' => 'contact.admin.inc',
- 'type' => MENU_LOCAL_TASK,
- 'weight' => 1,
- );
$items['contact'] = array(
'title' => 'Contact',
'page callback' => 'contact_site_page',
@@ -201,3 +186,19 @@ function contact_mail($key, &$message, $params) {
break;
}
}
+
+/**
+ * Implement of hook_form_FORM_ID_alter().
+ */
+function contact_form_user_admin_settings_alter(&$form, $form_state) {
+ $form['contact'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Contact forms'),
+ '#weight' => 0,
+ );
+ $form['contact']['contact_default_status'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Enable the personal contact form by default for new users.'),
+ '#default_value' => 1,
+ );
+}