You are here

function uiplog_form_alter in User IP Log 6

Same name and namespace in other branches
  1. 7 uiplog.module \uiplog_form_alter()

Implementation of hook_form_alter()

File

./uiplog.module, line 11
User IP Log module file.

Code

function uiplog_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'user_admin_settings') {
    $form['uiplog'] = array(
      '#type' => 'fieldset',
      '#title' => 'User IP Log Settings',
      '#weight' => -1,
    );
    $form['uiplog']['uiplog_user_delete_log'] = array(
      '#type' => 'radios',
      '#title' => t('User IP on account delete'),
      '#default_value' => variable_get('uiplog_user_delete_log', 1),
      '#options' => array(
        1 => t('Yes, Delete IP logged'),
        0 => t("No, Don't delete"),
      ),
      '#description' => t('Choose "Yes" to delete IP logging pertaining to user on his account delete. "No" to preserve all.'),
    );
  }
}