You are here

function google_analytics_reports_variable_to_custom_field in Google Analytics Reports 8.3

Same name and namespace in other branches
  1. 7.3 google_analytics_reports.module \google_analytics_reports_variable_to_custom_field()

Converts a specific field name into a base custom field name.

1 call to google_analytics_reports_variable_to_custom_field()
GoogleAnalyticsQuery::query in src/Plugin/views/query/GoogleAnalyticsQuery.php
Generate a query and a countquery from all of the information supplied to the object.

File

./google_analytics_reports.module, line 92
Front-end interfaces that use the Google Analytics Reports API module.

Code

function google_analytics_reports_variable_to_custom_field($field) {
  return preg_replace('/\\d+/', 'XX', $field);
}