function user_limit_submit in User Limit 6
Save our variables when user settings are saved.
See also
user_limit_form_user_admin_settings_alter()
1 string reference to 'user_limit_submit'
- user_limit_form_user_admin_settings_alter in ./
user_limit.module - Implementation of hook_FORM_ID_alter().
File
- ./
user_limit.module, line 197 - Everything related to User Limit. There are no include files.
Code
function user_limit_submit($form, &$form_state) {
if ($form_state['clicked_button']['#id'] == 'edit-submit') {
variable_set('user_limit', $form_state['values']['user_limit']);
variable_set('user_limit_uid1', $form_state['values']['user_limit_uid1']);
variable_set('user_limit_active', $form_state['values']['user_limit_active']);
variable_set('user_limit_message', $form_state['values']['user_limit_message']);
}
elseif ($form_state['clicked_button']['#id'] == 'edit-reset') {
variable_del('user_limit');
variable_del('user_limit_uid1');
variable_del('user_limit_active');
variable_del('user_limit_message');
}
}