function notify_admin_settings_submit in Notify 7
Submit for the notify_admin_settings form.
File
- ./
notify.admin.inc, line 158 - Administrative pages callbacks for the Notify module.
Code
function notify_admin_settings_submit($form, &$form_state) {
variable_set('notify_period', $form_state['values']['notify_period']);
variable_set('notify_batchsize', $form_state['values']['notify_batchsize']);
variable_set('notify_send_hour', $form_state['values']['notify_send_hour']);
variable_set('notify_attempts', $form_state['values']['notify_attempts']);
variable_set('notify_include_updates', $form_state['values']['notify_include_updates']);
variable_set('notify_unverified', $form_state['values']['notify_unverified']);
variable_set('notify_unpublished', $form_state['values']['notify_unpublished']);
if (isset($form_state['values']['notify_multilingual'])) {
variable_set('notify_multilingual', $form_state['values']['notify_multilingual']);
}
variable_set('notify_watchdog', $form_state['values']['notify_watchdog']);
variable_set('notify_weightur', $form_state['values']['notify_weightur']);
variable_set('notify_cron_next', 0);
// Force reset.
drupal_set_message(t('Notify admin settings saved.'));
}