function _amazon_make_simple_date_field in Amazon Product Advertisement API 7
Same name and namespace in other branches
- 6 includes/amazon.views.inc \_amazon_make_simple_date_field()
- 7.2 includes/amazon.views.inc \_amazon_make_simple_date_field()
Related topics
2 calls to _amazon_make_simple_date_field()
- amazon_media_views_data in amazon_media/
amazon_media.views.inc - Implementation of hook_views_data()
- amazon_views_data in includes/
amazon.views.inc
File
- includes/
amazon.views.inc, line 267 - Provide views data and handlers for amazon.module
Code
function _amazon_make_simple_date_field(&$data, $table, $column, $title, $help = '') {
$data[$table][$column] = array(
'title' => $title,
// The item it appears as on the UI,
'help' => $help,
// The help that appears on the UI,
// Information for displaying a title as a field
'field' => array(
'field' => $column,
// the real field
'handler' => 'views_handler_field_amazon_date',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_string_compare',
),
// Amazon date is sortable, so we can just use the standard handler.
'sort' => array(
'handler' => 'views_handler_sort',
),
);
}