function privatemsg_del_setting

7-2 privatemsg.module privatemsg_del_setting($type, $id, $setting)
6-2 privatemsg.module privatemsg_del_setting($type, $id, $setting)
4 calls to privatemsg_del_setting()
pm_email_notify_user_delete in pm_email_notify/pm_email_notify.module
Implements hook_user_delete().
PrivatemsgAPITestCase::testSettings in ./privatemsg.test
Tests for the privatemsg_*_setting() functions.
privatemsg_user_update in ./privatemsg.module
Implements hook_user_update().
_privatemsg_delete_data in ./privatemsg.module
Delete all message data from a user.

File

./privatemsg.module, line 3477
Allows users to send private messages to other users.

Code

function privatemsg_del_setting($type, $id, $setting) {
  db_delete('pm_setting')->condition('type', $type)->condition('id', $id)->condition('setting', $setting)->execute();

  // Update static cache.
  $cache = &drupal_static('privatemsg_settings', array());
  unset($cache[$setting][$type][$id]);
}