function flag_lists_handler_argument_fid::title_query in Flag Lists 7.3
Same name and namespace in other branches
- 6 includes/flag_lists_handler_argument_fid.inc \flag_lists_handler_argument_fid::title_query()
- 7 includes/flag_lists_handler_argument_fid.inc \flag_lists_handler_argument_fid::title_query()
Override the behavior of title(). Get the title of the list.
Overrides views_handler_argument_numeric::title_query
File
- includes/
flag_lists_handler_argument_fid.inc, line 14 - Provide list fid argument handler.
Class
- flag_lists_handler_argument_fid
- Argument handler to accept a list id.
Code
function title_query() {
$titles = array();
$result = db_select('flag_lists_flags', 'fl')
->fields('fl', array(
'title',
))
->condition('fl.fid', $this->value, 'IN')
->execute();
foreach ($result as $term) {
$titles[] = check_plain($term->title);
}
return $titles;
}