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

@@ -1506,8 +1506,8 @@ function _booking_leader_helper_email_summary($node) {
));
$otherperson = $otherperson_query->fetchAll();
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)));
//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)));
foreach ($otherperson as $other)
{

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);
@@ -127,6 +133,7 @@ function booking_rooms_allocate_test_form($node, &$form_state, $location_id) {
}
$form['submit'] = array (
'#type' => 'submit',
'#value' => t('Submit'),