canEdit()) { if ($setstudy) { $group->study = 1; $group->save(); /*translation:Group %s is now a study group.*/ system_message(sprintf(elgg_echo("koolielu:message_set_studygroup"), $group->name)); forward($group->getURL()); } if ($unsetstudy) { $group->study = 0; $group->save(); /*translation:Group %s is no longer a study group.*/ system_message(sprintf(elgg_echo("koolielu:message_unset_studygroup"), $group->name)); forward($group->getURL()); } } else { /*translation:Not enough privileges.*/ register_error(elgg_echo('koolielu:error_insufficient_privileges')); } ?>