function theme_acquia_lift_profiles_lift_event_value_form_table in Acquia Lift Connector 7.2
Theme callback for the form table.
1 theme call to theme_acquia_lift_profiles_lift_event_value_form_table()
- acquia_lift_profiles_lift_event_values_form in acquia_lift_profiles/
acquia_lift_profiles.admin.inc - Admin form for configuring lift_event_values behavior.
File
- acquia_lift_profiles/
theme/ acquia_lift_profiles.theme.inc, line 11 - acquia_lift_profiles.theme.inc Provides theme functions for Acquia Lift Profiles.
Code
function theme_acquia_lift_profiles_lift_event_value_form_table($variables) {
$element = $variables['element'];
$header = array(
t('Visitor Action'),
t('Engagement Score'),
t('Global Value'),
);
$rows = array();
// Traverse each row.
foreach (element_children($element) as $row_index) {
$rows[] = array(
array(
'data' => $element[$row_index]['#label'],
),
array(
'data' => $element[$row_index]['engagement_score'],
),
array(
'data' => $element[$row_index]['global_value'],
),
);
}
// Render the table and return.
return theme('table', array(
'header' => $header,
'rows' => $rows,
));
}