System:Modules:registerModuleHook

From Aspen Documentation

Identifies a module as autoload_with when parent module is loaded.

Since 1.0

Contents

Arguments

boolean registerModuleHook ([string $parent_guid = false], [string $depen_guid = false])

parent_guid
Module guid of the parent.
depen_guid
Module guid of the child to be called when parent is.

Returns

Returns a boolean value, true if database save successful.

Notes

  • As noted in bug 1247, a module may only have one parent when using the module hook. To establish a more direct dependency use the register.xml file.

Examples

Example:

$this->APP->modules->registerModuleHook('652d519c-b7f3-11dc-8314-0800200c9a66', 'abe46f6b-0d4a-6a3a-971f-4be42ba7e61b');