mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-11672, hide hidden assignment descriptions from calendar
This commit is contained in:
parent
5779b901e8
commit
dc6cb74efd
3 changed files with 52 additions and 1 deletions
|
@ -245,7 +245,7 @@ class assignment_base {
|
|||
}
|
||||
|
||||
$graded_date = $grade->dategraded;
|
||||
$graded_by = $grade->usermodified;
|
||||
$graded_by = $grade->usermodified;
|
||||
|
||||
/// We need the teacher info
|
||||
$teacher = get_record('user', 'id', $graded_by);
|
||||
|
@ -1729,6 +1729,22 @@ class assignment_base {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Return true if is set description is hidden till available date
|
||||
*
|
||||
* This is needed by calendar so that hidden descriptions do not
|
||||
* come up in upcoming events.
|
||||
*
|
||||
* Check that description is hidden till available date
|
||||
* By default return false
|
||||
* Assignments types should implement this method if needed
|
||||
* @return boolen
|
||||
*/
|
||||
function description_is_hidden() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an outline of the user's interaction with the assignment
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue