You are here

function ldap_help_watchdog_detail_submit in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_help/ldap_help.module \ldap_help_watchdog_detail_submit()
  2. 7 ldap_help/ldap_help.module \ldap_help_watchdog_detail_submit()
1 string reference to 'ldap_help_watchdog_detail_submit'
ldap_help_form_ldap_servers_settings_alter in ldap_help/ldap_help.module

File

ldap_help/ldap_help.module, line 101
The ldaphelp module is a module to help admins debug ldap_integration modules.

Code

function ldap_help_watchdog_detail_submit($form, &$form_state) {
  if ($form_state['submitted']) {
    $watchdog_detail = $form_state['values']['watchdog_detail'];
    if ($watchdog_detail != config('ldap_help.settings')
      ->get('watchdog_detail')) {
      variable_set('ldap_help_watchdog_detail', $watchdog_detail);
    }
    if ($form_state['values']['user_data_clear'] != config('ldap_help.settings')
      ->get('user_data_clear')) {
      variable_set('ldap_help_user_data_clear', $form_state['values']['user_data_clear']);
    }
    if ($form_state['values']['user_data_clear_date'] != 0) {
      variable_set('ldap_help_user_data_clear_set_date', time());
    }
  }
}