public function remove_team_from_all($team_id) { $joints = new Joint(); $joints->where('team_id', $team_id)->get(); if (!$joints->delete_all()) { set_notice('error', _('Couldn\'t remove the team from all the joints.')); log_message('error', 'remove_team_from_all (joint.php): removing failed'); return false; } }