function advpoll_field_field_views_data in Advanced Poll 7.3
Same name and namespace in other branches
- 7 advpoll_field/advpoll_field.module \advpoll_field_field_views_data()
- 7.2 advpoll_field/advpoll_field.module \advpoll_field_field_views_data()
Implements hook_field_views_data().
File
- advpoll_field/
advpoll_field.module, line 115 - Advanced Poll Field Module
Code
function advpoll_field_field_views_data($field) {
// An attempt to make a Views-friendly display.
$views_fields = field_views_field_default_views_data($field);
foreach ($views_fields as $key => $data) {
$views_fields[$key][$field['field_name'] . '_choice']['argument']['name field'] = $field['field_name'] . '_choice';
}
return $views_fields;
}