You are here

function _get_variation_label in Acquia Lift Connector 7.2

3 calls to _get_variation_label()
acquia_lift_report in ./acquia_lift.admin.inc
_build_experiment_report in ./acquia_lift.admin.inc
Builds the render array for the summary portion of the report.
_extract_daily_data in ./acquia_lift.admin.inc
Extracts daily stats from the reporting API into results that can be displayed.

File

./acquia_lift.admin.inc, line 2788
acquia_lift.admin.inc Provides functions needed for the admin UI.

Code

function _get_variation_label($variation_id, $personalization_name) {
  $os = acquia_lift_get_option_set_for_targeting($personalization_name, FALSE);
  foreach ($os->options as $option) {
    if ($option['option_id'] == $variation_id) {
      return $option['option_label'];
    }
  }
  return $variation_id;
}