You are here

function views_handler_argument_flipping_book_fbid::title_query in Flipping Book 7

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

Overrides views_handler_argument_numeric::title_query

File

views/views_handler_argument_flipping_book_fbid.inc, line 15
Provide flipping book fbid argument handler.

Class

views_handler_argument_flipping_book_fbid
Argument handler to accept a flipping_book id.

Code

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