add song choice and early access code to regn node view
This commit is contained in:
@@ -759,6 +759,9 @@ function booking_view($node, $view_mode) {
|
||||
$rows[] = array(t('Name:'), t('!first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname)));
|
||||
$rows[] = array(t('Gender:'), t('!gender', array('!gender' => $node->booking_gender == 'M' ? 'Male' : 'Female')));
|
||||
$rows[] = array(t('Status:'), t('!status', array('!status' => _booking_status_generate($node->booking_status))));
|
||||
if (variable_get('booking_enable_earlyaccess_codes', 0) == 1) {
|
||||
$rows[] = array(t('Early Access Code:'), t('!code', array('!song' => $node->booking_earlyaccess_code_id)));
|
||||
}
|
||||
$rows[] = array(t('Internal comments on this registration:'), t('<i>!comment</i>', array('!comment' => $node->booking_comment_field)));
|
||||
$rows[] = array(t('Committee Member:'), t('!ans', array('!ans' => ($node->booking_committee_member == 'Y' ? '<b>Yes</b>' : 'No'))));
|
||||
$rows[] = array(t('Welfare Required:'), $node->booking_welfare_required == 'Y' ? 'Yes' : 'No');
|
||||
@@ -774,8 +777,9 @@ function booking_view($node, $view_mode) {
|
||||
$rows[] = array(t('Refund Due:'), t('!amount_due', array('!amount_due' => $node->booking_refund_due)));
|
||||
$rows[] = array(t('Refund Processed:'), t('!ans', array('!ans' => ($node->booking_refund_processed == 'Y' ? 'Yes' : 'No'))));
|
||||
$rows[] = array(t('Random Facts:'), t('!facts', array('!facts' => $node->booking_random_facts)));
|
||||
if (variable_get('booking_enable_songchoice', 0) == 1) {
|
||||
$rows[] = array(t('Song Choice:'), t('!song', array('!song' => $node->booking_song_choice)));
|
||||
|
||||
}
|
||||
if (variable_get('booking_enable_tshirts', 0) == 1) {
|
||||
$rows[] = array(t('Hoodie Size:'), $node->booking_shirt_size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user