Bugfixes for updating studygroups
This commit is contained in:
@@ -383,6 +383,7 @@ function _booking_studygroups_cleanup($nid)
|
||||
|
||||
foreach ($to_remove as $group)
|
||||
{
|
||||
/*
|
||||
$role = "None";
|
||||
if ($group->booking_is_leader == 'Y')
|
||||
$role = "Lead group #" . $group->booking_studygroup_id;
|
||||
@@ -390,8 +391,12 @@ function _booking_studygroups_cleanup($nid)
|
||||
$role = "Help group #" . $group->booking_studygroup_id;
|
||||
elseif ($group->booking_is_reserveleader == 'Y')
|
||||
$role = "Reserve group #" . $group->booking_studygroup_id;
|
||||
|
||||
$message = t("Removing id !nid from group id !group with role !role.", array('!nid' => $nid, '!group' => $group->booking_studygroup_id, '!role' => $role));
|
||||
*/
|
||||
$message = t("Removing id !nid from group id !group with role !role.",
|
||||
array('!nid' => $nid, '!group' => $group->booking_studygroup_id, '
|
||||
!role' => _booking_studygroup_role_lookup($group->booking_studygroup_role)
|
||||
)
|
||||
);
|
||||
watchdog('booking', $message);
|
||||
drupal_set_message($message, 'status', FALSE);
|
||||
|
||||
|
Reference in New Issue
Block a user