You are here

function flag_handler_relationship_user_content::query in Flag 7.3

Same name and namespace in other branches
  1. 6.2 includes/flag_handler_relationships.inc \flag_handler_relationship_user_content::query()
  2. 6 includes/flag_handler_relationships.inc \flag_handler_relationship_user_content::query()
  3. 7.2 includes/flag_handler_relationships.inc \flag_handler_relationship_user_content::query()

Called to implement a relationship in a query.

Overrides views_handler_relationship::query

File

includes/views/flag_handler_relationships.inc, line 274
Contains various relationship handlers.

Class

flag_handler_relationship_user_content
Views relationship handler associating flags and users.

Code

function query() {
  if (!($flag = $this
    ->get_flag())) {
    return;
  }
  $this->definition['extra'][] = array(
    'field' => 'fid',
    'value' => $flag->fid,
    'numeric' => TRUE,
  );
  parent::query();
}