This shows you the differences between two versions of the page.
stats:proc:hideresults [2012/05/29 16:35] Patrick Michel |
stats:proc:hideresults [2013/07/10 12:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Hide Results ====== | ||
- | |||
- | <code xcend> | ||
- | hideResults(ident uid, ident id) { | ||
- | assume exists //accounts/account[uid]/examiner[id]; | ||
- | |||
- | assume exists //exams/exam[id]; | ||
- | |||
- | assume //exams/exam[id]/published; | ||
- | |||
- | update //exams/exam[id]/published false; | ||
- | } | ||
- | </code> | ||