function flag_handler_argument_content_id::get_flag in Flag 7.2
Same name and namespace in other branches
- 6.2 includes/flag_handler_argument_content_id.inc \flag_handler_argument_content_id::get_flag()
- 6 includes/flag_handler_argument_content_id.inc \flag_handler_argument_content_id::get_flag()
Returns the flag object associated with our argument.
An argument is in some relationship. This function reaches out for this relationship and reads its 'flag' option, which holds the flag name.
1 call to flag_handler_argument_content_id::get_flag()
- flag_handler_argument_content_id::title_query in includes/
flag_handler_argument_content_id.inc - Override the behavior of title(). Get the title of the appropriate objects.
File
- includes/
flag_handler_argument_content_id.inc, line 21 - Contains the content ID argument handler.
Class
- flag_handler_argument_content_id
- Handler to accept an argument of the content ID of any object.
Code
function get_flag() {
return $this->view->relationship[$this->options['relationship']]
->get_flag();
}