You are here

currency_handler_argument_currency.inc in Currency 7

Views argument handler.

File

includes/views/handlers/currency_handler_argument_currency.inc
View source
<?php

/**
 * @file
 *   Views argument handler.
 */
class currency_handler_argument_currency extends views_handler_argument {
  function query() {
    currency_views_preload($this->view);
    return parent::query();
  }

  /**
   * Get the title this argument will assign the view, given the argument.
   *
   * This usually needs to be overridden to provide a proper title.
   */
  function title() {
    $currency_names = currency_api_get_list();
    return $currency_names[$this->argument];
  }

}

Classes

Namesort descending Description
currency_handler_argument_currency @file Views argument handler.