function _flag_lists_is_flagged in Flag Lists 6
Same name and namespace in other branches
- 7.3 flag_lists.module \_flag_lists_is_flagged()
- 7 flag_lists.module \_flag_lists_is_flagged()
Returns TRUE if a certain user has flagged this content.
This method is similar to is_flagged() except that it does direct SQL and doesn't do caching. Use it when you want to not affect the cache, or to bypass it.
3 calls to _flag_lists_is_flagged()
- flag_lists_do_flag in ./
flag_lists.module - Flags, or unflags, an item.
- flag_lists_page in ./
flag_lists.module - Menu callback for (un)flagging a node.
- theme_flag_lists_list in ./
flag_lists.module
File
- ./
flag_lists.module, line 1043 - The Flag Lists module.
Code
function _flag_lists_is_flagged($flag, $content_id, $uid, $sid) {
return db_result(db_query("SELECT fid FROM {flag_lists_content} WHERE fid = %d AND uid = %d AND sid = %d AND content_id = %d", $flag->fid, $uid, $sid, $content_id));
}