function button_field_field_views_data in Button Field 7
Same name and namespace in other branches
- 8 includes/views/button_field.views.inc \button_field_field_views_data()
Implements hook_field_views_data().
File
- includes/
views/ button_field.views.inc, line 10 - Provides Views integration for the button_field field.
Code
function button_field_field_views_data($field) {
$data = field_views_field_default_views_data($field);
$field_name = $field['field_name'];
// Iterate over the data and set the field handler for the button field.
foreach ($data as $table_name => $table_data) {
$data[$table_name][$field_name]['field']['handler'] = 'button_field_handler_field';
}
return $data;
}