function CurrencyViewsHandlerFilterWebTestCase::viewsData in Currency 7.2
Overrides parent::viewsData();
Overrides ViewsSqlTest::viewsData
File
- currency/
tests/ CurrencyViewsHandlerFilterWebTestCase.test, line 53 - Contains class CurrencyViewsHandlerFilterWebTestCase.
Class
- CurrencyViewsHandlerFilterWebTestCase
- Tests CurrencyViewsHandlerFilter.
Code
function viewsData() {
// Declaration of the base table.
$data['views_test']['table'] = array(
'group' => t('Views test'),
'base' => array(
'field' => 'id',
'title' => t('Views test'),
),
);
// Declaration of fields.
$data['views_test']['currency_code'] = array(
'title' => t('Currency code'),
'help' => t('Currency code'),
'field' => array(
'handler' => 'CurrencyViewsHandlerField',
),
'filter' => array(
'handler' => 'CurrencyViewsHandlerFilter',
),
);
return $data;
}