function _get_variation_label_abbreviated in Acquia Lift Connector 7.2
Generates the variation abbreviated label.
Parameters
$counter: Indicates the number for the variation.
$is_control: True if this is the control option.
1 call to _get_variation_label_abbreviated()
- _build_daily_report in ./
acquia_lift.admin.inc - Builds the render array for the metrics portion of the report.
File
- ./
acquia_lift.admin.inc, line 2777 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function _get_variation_label_abbreviated($counter, $is_control) {
if ($is_control) {
return t('Control');
}
else {
if (!$counter) {
$counter = 1;
}
return t('V@num', array(
'@num' => $counter,
));
}
}