improve debug messages
This commit is contained in:
@@ -90,7 +90,7 @@ function booking_studygroups_define_form($node, &$form_state, $create, $editid =
|
||||
if ($create == true) {
|
||||
drupal_set_title('Add Study Group');
|
||||
$data = $node;
|
||||
watchdog('booking', 'Creating new study group: @info', array ('@info' => var_export($node, TRUE)));
|
||||
watchdog('booking_debug', 'Creating new study group: @info', array ('@info' => var_export($form_state, TRUE)));
|
||||
}
|
||||
else {
|
||||
drupal_set_title('Edit Study Group');
|
||||
@@ -109,7 +109,7 @@ function booking_studygroups_define_form($node, &$form_state, $create, $editid =
|
||||
'#type' => 'hidden',
|
||||
'#value' => $editid,
|
||||
);
|
||||
watchdog('booking', 'Editing study group definition: @info', array ('@info' => var_export($data, TRUE)));
|
||||
watchdog('booking_debug', '<pre>Editing study group definition:\n@info</pre>', array ('@info' => print_r($data, TRUE)));
|
||||
}
|
||||
|
||||
if(!isset($form_state['storage']['confirm'])) {
|
||||
@@ -214,10 +214,7 @@ function booking_studygroups_define_form_submit($form, &$form_state) {
|
||||
drupal_set_message("Error: Invalid studygroup ID supplied. Unable to delete entry.", 'error', FALSE);
|
||||
return "";
|
||||
}
|
||||
|
||||
//TODO: Confirmation
|
||||
//return confirm_form($form, "Really delete price?", 'admin/config/booking/prices');
|
||||
|
||||
|
||||
$num_deleted = db_delete('booking_studygroup_list')
|
||||
->condition('sid', $values['booking_sid'])
|
||||
->execute();
|
||||
|
Reference in New Issue
Block a user