/// Check to see if groups are being used here $groupmode = groups_get_activity_groupmode($cm); $currentgroup = groups_get_activity_group($cm, true); if ($elluminate->groupmode != 0) { $currentgroup = $elluminate->groupid; } else { if (empty($currentgroup)) { $currentgroup = 0; } } /// Process data submission. if (($data = data_submitted($CFG->wwwroot . '/mod/elluminate/moderators.php')) && confirm_sesskey()) { /// Delete records for selected moderators chosen to be removed. if ($data->submitvalue == "remove") { if (!empty($data->modscur)) { if (!elluminate_del_users($elluminate, $data->modscur, $currentgroup, true)) { $notice = get_string('couldnotremoveusersfromsession', 'elluminate'); } } } /// Add records for selected moderators chosen to be added. if ($data->submitvalue == "add") { if (!empty($data->modsavail)) { if (!elluminate_add_users($elluminate, $data->modsavail, $currentgroup, true)) { $notice = get_string('couldnotadduserstosession', 'elluminate'); } } } } /// Get a list of existing moderators for this meeting (if any) and assosciated /// information.
$notice = ''; /// Check to see if groups are being used here $groupmode = groups_get_activity_groupmode($cm); $currentgroup = groups_get_activity_group($cm, true); if (empty($currentgroup)) { $currentgroup = 0; } if (empty($elluminate->meetingid) && $elluminate->groupmode != 0) { elluminate_group_instance_check($elluminate); } /// Process data submission. if (($data = data_submitted($CFG->wwwroot . '/mod/elluminate/participants.php')) && confirm_sesskey()) { /// Delete records for selected participants chosen to be removed. if ($data->submitvalue == "remove") { if (!empty($data->userscur)) { if (!elluminate_del_users($elluminate, $data->userscur, $currentgroup)) { $notice = get_string('couldnotremoveusersfrommeeting', 'elluminate'); } } } /// Add records for selected participants chosen to be added. if ($data->submitvalue == "add") { if (!empty($data->usersavail)) { if (!elluminate_add_users($elluminate, $data->usersavail, $currentgroup)) { $notice = get_string('couldnotadduserstomeeting', 'elluminate'); } } } } /// Get a list of existing moderators for this meeting (if any) and assosciated /// information.