Remove debugging

This commit is contained in:
2016-01-30 13:33:49 +11:00
parent 71e7b50a69
commit c2fef6ddd9
2 changed files with 9 additions and 2 deletions

View File

@@ -36,6 +36,12 @@ function booking_rooms_allocate_test_form($node, &$form_state, $location_id) {
$options = array();
$counter = 0;
$prefix = "<p>Enter a person's surname in the text field to autocomplete with the person's details. Make sure you click on the person from the dropdown list that appears in order to allocate a bed.</p>";
$form['first_para'] = array (
'#type' => 'markup',
'#markup' => $prefix,
);
//verify that $location_id is a number
if (! preg_match('/^[0-9]+$/', $location_id)) {
drupal_set_message("Error: Invalid room location ID '" . $location_id . "' supplied. Unable to allocate rooms.", 'error', FALSE);
@@ -126,6 +132,7 @@ function booking_rooms_allocate_test_form($node, &$form_state, $location_id) {
_booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $default_row, &$counter, &$form);
}
$form['submit'] = array (
'#type' => 'submit',