add song choice
This commit is contained in:
@@ -287,6 +287,7 @@ function booking_insert($node) {
|
||||
//TODO: Generalise this by using the keys from $node instead of hard coding everything
|
||||
|
||||
$data = array();
|
||||
//$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title');
|
||||
foreach ($node as $key => $value) {
|
||||
//check if the key is a field that belongs in the database
|
||||
if ((strpos($key, "booking_") === 0) || $key === "nid") {
|
||||
@@ -457,6 +458,7 @@ function booking_update($node) {
|
||||
'booking_random_facts' => $node->booking_random_facts,
|
||||
'booking_status' => $node->booking_status,
|
||||
'booking_comment_field' => $node->booking_comment_field,
|
||||
'booking_song_choice' => $node->booking_song_choice,
|
||||
))
|
||||
->condition('nid', $node->nid)
|
||||
->execute();
|
||||
@@ -772,6 +774,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('Random Facts:'), t('!facts', array('!facts' => $node->booking_random_facts)));
|
||||
$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