flag_lists_handler_argument_fid.inc in Flag Lists 7
Same filename and directory in other branches
Provide list fid argument handler.
File
includes/flag_lists_handler_argument_fid.incView source
<?php
/**
* @file
* Provide list fid argument handler.
*/
/**
* Argument handler to accept a list id.
*/
class flag_lists_handler_argument_fid extends views_handler_argument_numeric {
/**
* Override the behavior of title(). Get the title of the list.
*/
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;
}
}
Classes
Name![]() |
Description |
---|---|
flag_lists_handler_argument_fid | Argument handler to accept a list id. |