Added random fact fields

This commit is contained in:
2015-07-30 20:47:51 +10:00
parent 11b27bb4b1
commit 9b9a8702f5
4 changed files with 24 additions and 2 deletions

View File

@@ -235,6 +235,7 @@ function booking_insert($node) {
'booking_refund_due' => $node->booking_refund_due,
'booking_refund_processed' => $node->booking_refund_processed,
'booking_committee_member' => $node->booking_committee_member,
'booking_random_facts' => $node->booking_random_facts,
))
->execute();
}
@@ -300,6 +301,7 @@ function booking_update($node) {
'booking_bf_gf_nid' => $node->booking_bf_gf_nid == '' ? 0 : $node->booking_bf_gf_nid,
'booking_room_mate1' => $node->booking_room_mate1,
'booking_room_mate2' => $node->booking_room_mate2,
'booking_random_facts' => $node->booking_random_facts,
'booking_shirt_size' => $node->booking_shirt_size,
'booking_help_music' => $node->booking_help_music,
'booking_help_praying' => ($node->booking_help_praying == 1 ? 'Y' : 'N'),
@@ -691,6 +693,7 @@ 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('Reading Group:'), t('!group', array('!group' => $node->booking_readinggroup)));
$rows[] = array(t('Random Facts:'), t('!facts', array('!facts' => $node->booking_random_facts)));
if (variable_get('booking_enable_tshirts', 0) == 1)
{