function acquia_lift_report_experiment_metric_dropdown in Acquia Lift Connector 7.2
Returns the drop-down for filtering reports by metric.
Parameters
$selected: The currently display metric.
Return value
array A form element array to be used as the dropdown.
2 calls to acquia_lift_report_experiment_metric_dropdown()
- acquia_lift_report_audience in ./
acquia_lift.admin.inc - Builds the audience-specific report.
- _acquia_lift_get_subreport in ./
acquia_lift.admin.inc - Builds a limited report for a test directly from the test stats.
File
- ./
acquia_lift.admin.inc, line 1381 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_report_experiment_metric_dropdown($selected) {
return array(
'#type' => 'select',
'#title' => t('Metrics'),
'#options' => array(
'rate' => t('Conversion rate %'),
'value' => t('Conversion value'),
),
'#default_value' => $selected,
'#required' => TRUE,
);
}