You are here

function google_analytics_reports_custom_to_variable_field in Google Analytics Reports 8.3

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

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

3 calls to google_analytics_reports_custom_to_variable_field()
GoogleAnalyticsArgument::query in src/Plugin/views/argument/GoogleAnalyticsArgument.php
Set up the query for this argument.
GoogleAnalyticsBase::query in src/Plugin/views/filter/GoogleAnalyticsBase.php
Add this filter to the query.
GoogleAnalyticsStandard::query in src/Plugin/views/field/GoogleAnalyticsStandard.php
Called to add the field to a query.

File

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

Code

function google_analytics_reports_custom_to_variable_field($field, $number) {
  return preg_replace('/XX/', $number, $field);
}