function google_analytics_reports_google_analytics_reports_field_import_alter in Google Analytics Reports 7.3
Same name and namespace in other branches
- 8.3 google_analytics_reports.module \google_analytics_reports_google_analytics_reports_field_import_alter()
Implements hook_google_analytics_reports_field_import_alter().
File
- ./
google_analytics_reports.module, line 157 - Front-end interfaces that use the Google Analytics Reports API module.
Code
function google_analytics_reports_google_analytics_reports_field_import_alter(&$field) {
// Change data type for Date field.
if ($field['id'] == 'date') {
$field['attributes']['dataType'] = 'date';
}
}