Remove debugging
This commit is contained in:
@@ -1506,8 +1506,8 @@ function _booking_leader_helper_email_summary($node) {
|
|||||||
));
|
));
|
||||||
$otherperson = $otherperson_query->fetchAll();
|
$otherperson = $otherperson_query->fetchAll();
|
||||||
|
|
||||||
watchdog('booking', "<pre>Other person for studygroup !group and role !role result:\n@info</pre>",
|
//watchdog('booking', "<pre>Other person for studygroup !group and role !role result:\n@info</pre>",
|
||||||
array('!group' => $studygroup->sid, '!role' => $otherrole_id, '@info' => print_r( $otherperson, true)));
|
// array('!group' => $studygroup->sid, '!role' => $otherrole_id, '@info' => print_r( $otherperson, true)));
|
||||||
|
|
||||||
foreach ($otherperson as $other)
|
foreach ($otherperson as $other)
|
||||||
{
|
{
|
||||||
|
@@ -36,6 +36,12 @@ function booking_rooms_allocate_test_form($node, &$form_state, $location_id) {
|
|||||||
$options = array();
|
$options = array();
|
||||||
$counter = 0;
|
$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
|
//verify that $location_id is a number
|
||||||
if (! preg_match('/^[0-9]+$/', $location_id)) {
|
if (! preg_match('/^[0-9]+$/', $location_id)) {
|
||||||
drupal_set_message("Error: Invalid room location ID '" . $location_id . "' supplied. Unable to allocate rooms.", 'error', FALSE);
|
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);
|
_booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $default_row, &$counter, &$form);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$form['submit'] = array (
|
$form['submit'] = array (
|
||||||
'#type' => 'submit',
|
'#type' => 'submit',
|
||||||
|
Reference in New Issue
Block a user