function views_handler_argument_aggregator_fid::title_query

Override the behavior of title(). Get the title of the feed.

Overrides views_handler_argument_numeric::title_query

File

modules/aggregator/views_handler_argument_aggregator_fid.inc, line 18

Class

views_handler_argument_aggregator_fid
Argument handler to accept an aggregator feed id.

Code

public function title_query() {
    $titles = array();
    $result = db_query("SELECT f.title FROM {aggregator_feed} f WHERE f.fid IN (:fids)", array(
        ':fids' => $this->value,
    ));
    foreach ($result as $term) {
        $titles[] = check_plain($term->title);
    }
    return $titles;
}