Skip to content

Commit

Permalink
Add documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
AcerP-py authored Dec 12, 2024
1 parent e6f13fb commit 8f60687
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/170_hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ used in the Lmod program.
1 output. The table passed in contains the whatis category and the
property table. See *rt/uitSitePkg/mf/site_scripts/SitePackage.lua*
for a complete example.

**add_to_module** (table):
(Returns: table)
This hook allows a site to add contents to a module file (e.g. add
``add_property(...)`` based on the location of the module file). It
provides a table ``{path, name, version, contents}`` as a parameter and
should return an indexed table of strings to add to the module file.


Example Hook: msgHook
Expand Down

0 comments on commit 8f60687

Please sign in to comment.