function flag_flag::_unflag in Flag 5
Same name and namespace in other branches
- 6.2 flag.inc \flag_flag::_unflag()
- 6 flag.inc \flag_flag::_unflag()
- 7.2 flag.inc \flag_flag::_unflag()
A low-level method to unflag content.
You probably shouldn't call this raw private method: call the flag() function instead.
@private
1 call to flag_flag::_unflag()
- flag_flag::flag in ./
flag.inc - Flags, on unflags, an item.
File
- ./
flag.inc, line 470 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_flag
- This abstract class represents a flag, or, in Views 2 terminology, "a handler".
Code
function _unflag($content_id, $uid) {
db_query("DELETE FROM {flag_content} WHERE fid = %d AND uid = %d AND content_id = %d", $this->fid, $uid, $content_id);
$this
->_update_count($content_id);
}