function contact_form_user_admin_settings_alter

cis7 contact.module contact_form_user_admin_settings_alter(&$form, &$form_state)
cle7 contact.module contact_form_user_admin_settings_alter(&$form, &$form_state)
elmsmedia7 contact.module contact_form_user_admin_settings_alter(&$form, &$form_state)
icor7 contact.module contact_form_user_admin_settings_alter(&$form, &$form_state)
meedjum_blog7 contact.module contact_form_user_admin_settings_alter(&$form, &$form_state)
mooc7 contact.module contact_form_user_admin_settings_alter(&$form, &$form_state)

Implements hook_form_FORM_ID_alter().

Add the default personal contact setting on the user settings page.

See also

user_admin_settings()

File

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

Code

function contact_form_user_admin_settings_alter(&$form, &$form_state) {
  $form['contact'] = array(
    '#type' => 'fieldset',
    '#title' => t('Contact settings'),
    '#weight' => 0,
  );
  $form['contact']['contact_default_status'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable the personal contact form by default for new users.'),
    '#description' => t('Changing this setting will not affect existing users.'),
    '#default_value' => variable_get('contact_default_status', 1),
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.