You are here

function email_contact_admin_settings in Email Contact 7

Settings for contact form.

1 string reference to 'email_contact_admin_settings'
email_contact_menu in ./email_contact.module
Implements hook_menu().

File

./email_contact.module, line 511
File name: email_contact.module.

Code

function email_contact_admin_settings() {
  $form['email_hourly_threshold'] = array(
    '#type' => 'select',
    '#title' => t('Hourly threshold for a CCK Email contact form'),
    '#options' => drupal_map_assoc(array(
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      20,
      30,
      40,
      50,
    )),
    '#default_value' => variable_get('email_hourly_threshold', 3),
    '#description' => t('The maximum number of contact form submissions a user can perform per hour.'),
  );
  return system_settings_form($form);
}