steveosoule
5/5/2017 - 4:42 PM

Miva - mvt:do Module Load ID & Module Load Code

Miva - mvt:do Module Load ID & Module Load Code

<mvt:comment>
    Load module details with its id

    @param: module id
    @param: module data loaded to this vairable (struct)
    @return (boolean)
</mvt:comment>
<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_ID('module_id', l.settings:module)" />

<mvt:comment>
    Load module details with its code

    @param: module code
    @param: module data loaded to this vairable (struct)
    @return (boolean)
</mvt:comment>
<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_Code('module_code', l.settings:module)" />


<mvt:comment>
	Example Usage
	<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_Code('cssui', l.settings:module)" />
	<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_ID('132', l.settings:module)" />
	Example data loaded to `l.settings:module`:
	```
	Variable                      Entity                   Value
	l.settings:module:active      &mvt:module:active;      1
	l.settings:module:api_ver     &mvt:module:api_ver;     9.04
	l.settings:module:code        &mvt:module:code;        cssui
	l.settings:module:id          &mvt:module:id;          132
	l.settings:module:module      &mvt:module:module;      modules/ui/cssui.mvc
	l.settings:module:name        &mvt:module:name;        Miva Merchant CSSUI
	l.settings:module:provider    &mvt:module:provider;    Miva Merchant
	l.settings:module:refcount    &mvt:module:refcount;    1
	l.settings:module:version     &mvt:module:version;     9.0007
	```
</mvt:comment>