cleanup trailing whitespace
This commit is contained in:
@@ -48,7 +48,7 @@ function booking_rooms_allocate_form($node, &$form_state, $location_id) {
|
||||
drupal_set_message("Error: Invalid room location ID '" . $location_id . "' supplied. Unable to allocate rooms.", 'error', FALSE);
|
||||
drupal_goto('admin/booking/rooms');
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
//query for existing room allocations
|
||||
$query = db_select('booking_person', 'p');
|
||||
@@ -216,7 +216,7 @@ function booking_rooms_allocate_form_submit($form, &$form_state) {
|
||||
->condition('booking_nodeid', $previous_nid)
|
||||
->condition('booking_room_bedtype', $type_id)
|
||||
->condition('booking_roomid', $room)
|
||||
->execute();
|
||||
->execute();
|
||||
|
||||
}
|
||||
else
|
||||
@@ -329,7 +329,7 @@ function _booking_rooms_allocate_form_submit_helper(&$room_mapping, $room, $type
|
||||
{
|
||||
$message = t('Changing person id !id from old room !oldroom to new room !room with type !type bed.',
|
||||
array('!id' => $nid, '!room' => $room, '!type' => $type_id,
|
||||
'!oldroom' => $room_mapping[$nid]->booking_roomid));
|
||||
'!oldroom' => $room_mapping[$nid]->booking_roomid));
|
||||
|
||||
db_update('booking_room_mapping')
|
||||
->fields(array(
|
||||
@@ -365,8 +365,7 @@ function _booking_rooms_allocate_form_submit_helper(&$room_mapping, $room, $type
|
||||
drupal_set_message($message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* function to generate table rows for each single bed defined in this room
|
||||
@@ -443,7 +442,7 @@ function _booking_rooms_allocate_generate_doublebeds($data, $existing_beds, $def
|
||||
$new_row = _booking_clone_array($default_row);
|
||||
$new_row['booking_room_doublebed_p1'] = array('data' => &$double_bed_p1);
|
||||
$new_row['booking_room_doublebed_p2'] = array('data' => &$double_bed_p2);
|
||||
$form['rooms']['#rows'][$counter] = $new_row;
|
||||
$form['rooms']['#rows'][$counter] = $new_row;
|
||||
|
||||
unset($double_bed_p1);
|
||||
unset($double_bed_p2);
|
||||
|
Reference in New Issue
Block a user