canEdit()) { register_error(elgg_echo('actionunauthorized')); forward(REFERER); } // save the settings if (questions_can_groups_set_solution_time()) { $group->setPrivateSetting('questions_solution_time', $solution_time); } if (questions_experts_enabled()) { $group->setPrivateSetting('questions_who_can_ask', $who_can_ask); $group->setPrivateSetting('questions_auto_mark_correct', $auto_mark_correct); if (!questions_experts_only_answer()) { $group->setPrivateSetting('questions_who_can_answer', $who_can_answer); } } system_message(elgg_echo('questions:action:group_settings:success')); forward($group->getURL());