function flag_comment::get_content_id in Flag 7.2
Same name and namespace in other branches
- 5 flag.inc \flag_comment::get_content_id()
- 6.2 flag.inc \flag_comment::get_content_id()
- 6 flag.inc \flag_comment::get_content_id()
Returns the entity id, if it already exists.
Overrides flag_entity::get_content_id
File
- ./
flag.inc, line 1706 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_comment
- Implements a comment flag.
Code
function get_content_id($comment) {
// Store the comment object in the static cache, to avoid getting it
// again unneedlessly.
$this
->remember_content($comment->cid, $comment);
return $comment->cid;
}