You are here

function acquia_lift_report_conversion_metric_dropdown in Acquia Lift Connector 7

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_conversion_metric_dropdown()
acquia_lift_report_ab in ./acquia_lift.admin.inc
Form build function for an A/B Acquia Lift agent report.
acquia_lift_report_custom in ./acquia_lift.admin.inc
Form build function for a custom Acquia Lift agent report.

File

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

Code

function acquia_lift_report_conversion_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,
  );
}