You are here

function contact_admin_settings in Drupal 5

Same name and namespace in other branches
  1. 4 modules/contact.module \contact_admin_settings()
  2. 6 modules/contact/contact.admin.inc \contact_admin_settings()
1 string reference to 'contact_admin_settings'
contact_menu in modules/contact/contact.module
Implementation of hook_menu().

File

modules/contact/contact.module, line 277
Enables the use of personal and site-wide contact forms.

Code

function contact_admin_settings() {
  $form['contact_form_information'] = array(
    '#type' => 'textarea',
    '#title' => t('Additional information'),
    '#default_value' => variable_get('contact_form_information', t('You can leave a message using the contact form below.')),
    '#description' => t('Information to show on the <a href="@form">contact page</a>. Can be anything from submission guidelines to your postal address or telephone number.', array(
      '@form' => url('contact'),
    )),
  );
  $form['contact_hourly_threshold'] = array(
    '#type' => 'select',
    '#title' => t('Hourly threshold'),
    '#options' => drupal_map_assoc(array(
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      20,
      30,
      40,
      50,
    )),
    '#default_value' => variable_get('contact_hourly_threshold', 3),
    '#description' => t('The maximum number of contact form submissions a user can perform per hour.'),
  );
  $form['contact_default_status'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable personal contact form by default'),
    '#default_value' => variable_get('contact_default_status', 1),
    '#description' => t('Default status of the personal contact form for new users.'),
  );
  return system_settings_form($form);
}