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
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