function _amazon_make_simple_boolean_field in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 includes/amazon.views.inc \_amazon_make_simple_boolean_field()
- 7 includes/amazon.views.inc \_amazon_make_simple_boolean_field()
Related topics
1 call to _amazon_make_simple_boolean_field()
- amazon_views_data in includes/
amazon.views.inc
File
- includes/
amazon.views.inc, line 218 - Provide views data and handlers for amazon.module
Code
function _amazon_make_simple_boolean_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_boolean',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
}