How to create new course's tool

Hello, How can I create a new tool for the courses? Is it possible to duplicate one, like the "lesson" tool, and customize it? If yes, how can I do it? Do you have any generic/basic custom tool file that I can customize and use? Thanks, Jack
Profile picture for user James Aparicio
James Aparicio

Hi Jack,

Hi Jack,

Check the file opigno.api.php.

Documentation for the hook_opigno_tool is there.

All tools in the platform implement this hook. You can look at any of their implementations.

If you grep the whole project for "opigno_tool", you will find all implementations of it. Both hook_opigno_tool as well as hook_opigno_tool_alter.

Best regards