getActiveModule(moduleName: String);
moduleName. Unit name. Optional parameter. If the value is not specified, the method returns settings of the unit, which type is saved in the session.
The getActiveMode method returns settings of the current system unit or its settings by the specified name.
The method returns a JSON object with the following fields: Data - unit type determined with the PP.App.ModuleType enumeration, Name - unit name, ResourceKey - resource key for displaying unit name, Url - unit URL, Visible - parameter indicating unit visibility determined with the PP.ModuleVisibilityMode enumeration.
The method use is given in the example for PP.App.getImagePath.
See also: