You are here

function email_admin_settings in Email Field 6

Same name and namespace in other branches
  1. 7 email.module \email_admin_settings()

Settings for contact form

1 string reference to 'email_admin_settings'
email_menu in ./email.module
Implementation of hook_menu().

File

./email.module, line 472

Code

function email_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);
}