Mohammad Farouk
Mohammad Farouk

Reputation: 21

Moodle availability condition plugin

I'm using moodle and for all availability conditions plugins there is a function get_description

this function suppose to return string that is displayed on the course module description

it is suppose to return string when it is not available to student which is ok and another string which displayed when it is available which it didn't appear at all

I searched and tried to change the code of the core availability and course formats but I failed any help

Return strings of the function

2

I tried to change core availability info , and core course format and templates but nothing solved the problem, I don't even know where to look

Upvotes: 0

Views: 154

Answers (1)

davosmith
davosmith

Reputation: 6317

The availability condition is not supposed to output anything when the conditions are met. The $not param is for when the condition has been inverted when it has been configured.

e.g. it is possible to configure an availability condition for:

  • User's first name is "Fred" OR
  • User's first name is NOT "Fred"

The text is still only displayed if the user doesn't meet the condition, but the content of that text output will be different in each case.

Upvotes: 0

Related Questions