function privatemsg_del_setting in Privatemsg 6.2
Same name and namespace in other branches
- 7.2 privatemsg.module \privatemsg_del_setting()
3 calls to privatemsg_del_setting()
- pm_email_notify_user in pm_email_notify/
pm_email_notify.module - Implements hook_user().
- PrivatemsgAPITestCase::testSettings in ./
privatemsg.test - Tests for the privatemsg_*_setting() functions.
- privatemsg_user in ./
privatemsg.module
File
- ./
privatemsg.module, line 3066 - Allows users to send private messages to other users.
Code
function privatemsg_del_setting($type, $id, $setting) {
// Based on variable_set().
db_query("DELETE FROM {pm_setting} WHERE type = '%s' AND id = %d AND setting = '%s'", $type, $id, $setting);
// Update static cache.
$cache =& _privatemsg_setting_static_cache();
unset($cache[$setting][$type][$id]);
}