You are here

function flag_user::get_flag_action in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_user::get_flag_action()
  2. 6.2 flag.inc \flag_user::get_flag_action()
  3. 7.3 includes/flag/flag_user.inc \flag_user::get_flag_action()
  4. 7.2 flag.inc \flag_user::get_flag_action()

File

./flag.inc, line 1170
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_user
Implements a user flag.

Code

function get_flag_action($content_id) {
  $flag_action = parent::get_flag_action($content_id);
  $user = $this
    ->fetch_content($content_id);
  $flag_action->content_title = $user->name;
  $flag_action->content_url = _flag_url('user/' . $user->uid);
  return $flag_action;
}