function hook_currency_exchanger_info in Currency 7.2
Expose currency exchangers.
Currency exchangers are Ctools plugins. As such, this hook is a Ctools plugin hook.
Return value
array Keys are plugin machine names. Values are arrays with two items:
- exchanger: an array with a "class" key, which contains the name of the exchanger class, which should implement CurrencyExchangerInterface.
- title: the translated human-readable title. Defaults to TRUE.
1 function implements hook_currency_exchanger_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- currency_currency_exchanger_info in currency/
currency.currency.inc - Implements hook_currency_exchanger_info().
File
- currency/
currency.api.php, line 77 - API documentation.
Code
function hook_currency_exchanger_info() {
$currency_exchangers['CurrencyExchangerFixedRates'] = array(
'exchanger' => array(
'class' => 'CurrencyExchangerFixedRates',
),
'title' => t('Fixed rates'),
);
return $currency_exchangers;
}