Revision 4cfd8be6
Added by Assos Assos over 9 years ago
drupal7/sites/all/modules/flag/includes/views/flag_handler_relationships.inc | ||
---|---|---|
44 | 44 |
return $errors; |
45 | 45 |
} |
46 | 46 |
|
47 |
/** |
|
48 |
* Get the type of the flag this relationship uses. |
|
49 |
* |
|
50 |
* This looks at the data set in the relationship definition in Views data. |
|
51 |
* |
|
52 |
* @return |
|
53 |
* The flag's type, e.g., 'node' or 'taxonomy_term', or NULL if this is not |
|
54 |
* set in data from hook_views_data(). |
|
55 |
* |
|
56 |
* @see flag_views_data_alter() |
|
57 |
*/ |
|
47 | 58 |
function get_flag_type() { |
48 | 59 |
return isset($this->definition['flag type']) ? $this->definition['flag type'] : NULL; |
49 | 60 |
} |
... | ... | |
77 | 88 |
} |
78 | 89 |
|
79 | 90 |
/** |
80 |
* Specialized relationship handler associating flags and content. |
|
91 |
* Views relationship handler associating flags and content. |
|
92 |
* |
|
93 |
* This forms a bridge from the entity table to the {flagging} table, with |
|
94 |
* options to restrict the join to only flagged content, and to flagged content |
|
95 |
* by the current user. |
|
81 | 96 |
* |
82 | 97 |
* @ingroup views |
83 | 98 |
*/ |
... | ... | |
172 | 187 |
} |
173 | 188 |
|
174 | 189 |
/** |
175 |
* Specialized relationship handler associating flag counts and content. |
|
190 |
* Views relationship handler associating flag counts and content. |
|
191 |
* |
|
192 |
* This forms a bridge from the entity table to the {flag_counts} table, with |
|
193 |
* the option to restrict the join to include only flagged content. |
|
176 | 194 |
* |
177 | 195 |
* @ingroup views |
178 | 196 |
*/ |
... | ... | |
227 | 245 |
} |
228 | 246 |
|
229 | 247 |
/** |
230 |
* Specialized relationship handler associating flags and users. |
|
248 |
* Views relationship handler associating flags and users. |
|
249 |
* |
|
250 |
* This forms a bridge from the the {users} table to the {flagging} table. |
|
231 | 251 |
* |
232 | 252 |
* @ingroup views |
233 | 253 |
*/ |
Also available in: Unified diff
Weekly update of contrib modules