You are here

function notify_user_settings_form_submit in Notify 5

Same name and namespace in other branches
  1. 5.2 notify.module \notify_user_settings_form_submit()
  2. 6 notify.module \notify_user_settings_form_submit()
  3. 7 notify.admin.inc \notify_user_settings_form_submit()

File

./notify.module, line 207

Code

function notify_user_settings_form_submit($form_id, $form_values) {
  db_query('DELETE FROM {notify} WHERE uid = %d', $form_values['uid']);
  db_query('INSERT INTO {notify} (uid, status, node, teasers, comment) VALUES (%d, %d, %d, %d, %d)', $form_values['uid'], $form_values['status'], $form_values['node'], $form_values['teasers'], $form_values['comment']);
  drupal_set_message(t('Notify settings saved.'));
}