function _flag_lists_flag in Flag Lists 7.3
Same name and namespace in other branches
- 6 flag_lists.module \_flag_lists_flag()
- 7 flag_lists.module \_flag_lists_flag()
A low-level method to flag content.
You probably shouldn't call this raw private method: call the flag_lists_do_flag() function instead.
1 call to _flag_lists_flag()
- flag_lists_do_flag in ./
flag_lists.module - Flags, or unflags, an item.
File
- ./
flag_lists.module, line 1583 - The Flag Lists module.
Code
function _flag_lists_flag($flag, $entity_id, $uid, $sid) {
$fcid = db_insert('flag_lists_content')
->fields(array(
'fid' => $flag->fid,
'entity_type' => $flag->entity_type,
'entity_id' => $entity_id,
'uid' => $uid,
'sid' => $sid,
'timestamp' => REQUEST_TIME,
))
->execute();
_flag_lists_update_count($flag, $entity_id);
return $fcid;
}