function theme_commerce_registration_review_registration in Commerce Registration 7.3
Theme callback to theme a single registration for checkout review.
1 theme call to theme_commerce_registration_review_registration()
- theme_commerce_registration_review_pane in includes/
commerce_registration.theme.inc - Theme callback for the checkout review pane.
File
- includes/
commerce_registration.theme.inc, line 77 - Commerce Registration theme functions.
Code
function theme_commerce_registration_review_registration($variables) {
$reg_wrapper = entity_metadata_wrapper('registration', $variables['registration']);
$email = $reg_wrapper->mail
->value();
$output = "<p><span class='registration-email'><strong>" . t("Email") . ":</strong> " . check_plain($email) . "</span></p>";
$output .= "<p><span class='registration-slots'><strong>" . t("Slots") . ":</strong> " . check_plain($reg_wrapper->count
->value()) . "</span></p>";
$field_view = field_attach_view('registration', $variables['registration'], 'review_pane');
$output .= drupal_render($field_view);
return $output;
}