function flag_comment::get_flag_action in Flag 5
Same name and namespace in other branches
- 6.2 flag.inc \flag_comment::get_flag_action()
- 6 flag.inc \flag_comment::get_flag_action()
- 7.3 includes/flag/flag_comment.inc \flag_comment::get_flag_action()
- 7.2 flag.inc \flag_comment::get_flag_action()
File
- ./
flag.inc, line 1032 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_comment
- Implements a comment flag.
Code
function get_flag_action($content_id) {
$flag_action = parent::get_flag_action($content_id);
$comment = $this
->fetch_content($content_id);
$flag_action->content_title = $comment->subject;
$flag_action->content_url = _flag_url("node/{$comment->nid}/{$comment->cid}", "comment-{$comment->cid}");
return $flag_action;
}