You are here

function notify_user_settings_form_submit in Notify 6

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

File

./notify.module, line 319
Notify module sends email digests of new content and comments.

Code

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