function views_handler_argument_aggregator_iid::title_query

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

Overrides views_handler_argument_numeric::title_query

File

modules/aggregator/views_handler_argument_aggregator_iid.inc, line 18

Class

views_handler_argument_aggregator_iid
Argument handler to accept an aggregator item id.

Code

public function title_query() {
    $titles = array();
    $result = db_select('aggregator_item', 'ai')->condition('iid', $this->value, 'IN')
        ->fields('ai', array(
        'title',
    ))
        ->execute();
    foreach ($result as $term) {
        $titles[] = check_plain($term->title);
    }
    return $titles;
}