New Module: Shelf

Re: Conflict with gradebook column

by Gustav W Delius -
Number of replies: 2

A module that does not produce grades should return NULL rather than an array in the function modulename_grades. So in your case you need:

function shelf_grades($shelfid) {
/// shelf does not generate grades
    return NULL;
}

in your lib.php file

In reply to Gustav W Delius

Re: Conflict with gradebook column

by W Page -
Hi Gustav,

  • Where should the above code be placed in the "lib.php" file?
  • What section of code should be replaced with the above code?

WP1

In reply to W Page

Re: Conflict with gradebook column

by Gustav W Delius -
Hi WP1, I didn't see your question until right now. The code should replace the current code for that function in lib.php.