function update_settings_submit in Drupal 6
Same name and namespace in other branches
- 7 modules/update/update.settings.inc \update_settings_submit()
Submit handler for the settings tab.
File
- modules/
update/ update.settings.inc, line 90 - Code required only for the update status settings form.
Code
function update_settings_submit($form, $form_state) {
$op = $form_state['values']['op'];
if ($op == t('Reset to defaults')) {
unset($form_state['notify_emails']);
}
else {
if (empty($form_state['notify_emails'])) {
variable_del('update_notify_emails');
}
else {
variable_set('update_notify_emails', $form_state['notify_emails']);
}
unset($form_state['notify_emails']);
unset($form_state['values']['update_notify_emails']);
}
system_settings_form_submit($form, $form_state);
}