function flag_handler_relationship::get_flag_type in Flag 7.3
Same name and namespace in other branches
- 6.2 includes/flag_handler_relationships.inc \flag_handler_relationship::get_flag_type()
- 7.2 includes/flag_handler_relationships.inc \flag_handler_relationship::get_flag_type()
Get the type of the flag this relationship uses.
This looks at the data set in the relationship definition in Views data.
Return value
The flag's type, e.g., 'node' or 'taxonomy_term', or NULL if this is not set in data from hook_views_data().
See also
1 call to flag_handler_relationship::get_flag_type()
- flag_handler_relationship::get_flag in includes/
views/ flag_handler_relationships.inc - Returns the flag object.
File
- includes/
views/ flag_handler_relationships.inc, line 58 - Contains various relationship handlers.
Class
- flag_handler_relationship
- Base class for all our relationship classes.
Code
function get_flag_type() {
return isset($this->definition['flag type']) ? $this->definition['flag type'] : NULL;
}