minor tweaks
This commit is contained in:
@@ -225,7 +225,7 @@ function booking_roomnum_ajax_callback($form, $form_state) {
|
||||
* Function to return the updated form element booking_room_bedtype for booking_room_edit_form()
|
||||
*/
|
||||
function booking_bedtype_ajax_callback($form, $form_state) {
|
||||
watchdog('booking', "<pre>Room Edit ajax callback:\n@info</pre>", array('@info' => print_r( $form, true)));
|
||||
//watchdog('booking', "<pre>Room Edit ajax callback:\n@info</pre>", array('@info' => print_r( $form, true)));
|
||||
return $form['form']['booking_room_bedtype'];
|
||||
}
|
||||
|
||||
@@ -361,8 +361,8 @@ function booking_room_edit_form_submit($form, &$form_state) {
|
||||
//this person already exists in mapping table
|
||||
if ($check)
|
||||
{
|
||||
$message = t("Updating person id !nid to room id !id with bedtype !type",
|
||||
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => $values['booking_room_bedtype'],
|
||||
$message = t("Updating person id !nid to room id !id with bed type !type.",
|
||||
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => _booking_room_bedtype_lookup($values['booking_room_bedtype']),
|
||||
'!number' => $values['booking_room_number'])
|
||||
);
|
||||
|
||||
@@ -375,13 +375,13 @@ function booking_room_edit_form_submit($form, &$form_state) {
|
||||
->condition('booking_eventid', $event->eid)
|
||||
->condition('booking_nodeid', $values['personid'])
|
||||
->execute();
|
||||
//drupal_set_message("Successfully updated " . $result . " row(s) in the room allocation table.", $type = 'status');
|
||||
|
||||
}
|
||||
//create a new record in the mapping table
|
||||
else
|
||||
{
|
||||
$message = t("Allocating person id !nid to room id !id with bedtype !type",
|
||||
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => $values['booking_room_bedtype'],
|
||||
$message = t("Allocating person id !nid to room id !id with bed type !type.",
|
||||
array('!nid' => $values['personid'], '!id' => $details->rid, '!type' => _booking_room_bedtype_lookup($values['booking_room_bedtype']),
|
||||
'!number' => $values['booking_room_number'])
|
||||
);
|
||||
|
||||
@@ -394,7 +394,7 @@ function booking_room_edit_form_submit($form, &$form_state) {
|
||||
'booking_room_bedtype' => $values['booking_room_bedtype'],
|
||||
))
|
||||
->execute();
|
||||
//drupal_set_message("Successfully added id " . $values['personid'] . " to the room allocation table.", $type = 'status');
|
||||
|
||||
}
|
||||
watchdog('booking', $message);
|
||||
drupal_set_message($message, 'status', FALSE);
|
||||
|
Reference in New Issue
Block a user