code cleanup
This commit is contained in:
@@ -210,50 +210,10 @@ function booking_import_data_admin_submit($form, &$form_state)
|
||||
$update_text .= _booking_import_studygroup_info($record['nid'], $studygroups_update_array, $studygroup_roles_update_array);
|
||||
}
|
||||
drupal_set_message(t("Updating record !nid as follows: !update", array('!nid' => $record[$key], '!update' => $update_text)));
|
||||
|
||||
//$args = $query->getArguments();
|
||||
/*
|
||||
watchdog('booking', "Update Query:<br />@info<br />Condition: @nid<br />Rows affected: @rows<br />Values: <br /><pre>@values</pre>",
|
||||
array('@info' => (string) $query, '@nid' => $record['nid'], '@rows' => $rows, '@values' => print_r( $update_array, true) ));
|
||||
*/
|
||||
|
||||
/*
|
||||
$result_array[] = t('Setting payment for id !nid to $!price of total required $!total and status to !status',
|
||||
array('!nid' => $record['nid'],
|
||||
'!price' => $record['booking_amount_paid'],
|
||||
'!total' => $record['booking_total_pay_reqd'],
|
||||
'!status' => _booking_status_lookup($record['booking_status'])
|
||||
)
|
||||
);
|
||||
*/
|
||||
/*
|
||||
//TODO: output this from $result_array
|
||||
drupal_set_message(t('Setting payment for id !nid to $!price of total required $!total and status to !status',
|
||||
array('!nid' => $record['nid'],
|
||||
'!price' => $record['booking_amount_paid'],
|
||||
'!total' => $record['booking_total_pay_reqd'],
|
||||
'!status' => _booking_status_lookup($record['booking_status']))
|
||||
));
|
||||
*/
|
||||
|
||||
// watchdog('booking', 'Setting payment for regn id !nid to $!price and status to !status',
|
||||
// array('!nid' => $record['nid'], '!price' => $record['booking_amount_paid'], '!status' => _booking_status_lookup($record['booking_status'])));
|
||||
|
||||
/*
|
||||
db_update('booking_person')
|
||||
->fields(array(
|
||||
'booking_amount_paid' => $record['booking_amount_paid'],
|
||||
'booking_total_pay_reqd' => $record['booking_total_pay_reqd'],
|
||||
'booking_status' => _booking_status_lookup($record['booking_status']),
|
||||
))
|
||||
->condition('nid', $record['nid'])
|
||||
->execute();
|
||||
*/
|
||||
|
||||
} //end processing input data
|
||||
|
||||
//output our results to watchdog
|
||||
//watchdog('booking', '<pre>@print_r</pre>', array('@print_r', print_r( $result_array, TRUE)));
|
||||
watchdog('booking', "<pre>Processing row data:\n@info</pre>", array('@info' => print_r($update_array, true)));
|
||||
|
||||
//delete the uploaded file
|
||||
file_delete($file);
|
||||
|
Reference in New Issue
Block a user