You are here

function flag_comment::get_entity_id in Flag 7.3

Returns the entity id, if it already exists.

Overrides flag_entity::get_entity_id

File

includes/flag/flag_comment.inc, line 65
Contains the flag_comment class.

Class

flag_comment
Implements a comment flag.

Code

function get_entity_id($comment) {

  // Store the comment object in the static cache, to avoid getting it
  // again unneedlessly.
  $this
    ->remember_entity($comment->cid, $comment);
  return $comment->cid;
}