PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
get module info
array pnModGetInfo(modid);
pnModGetInfo() obtains information on a module in this PostNuke system.
The id of this module in the PostNuke system.
This function returns an array of module information if the module is found. This function returns void if an exception was raised.
This function raises BAD_PARAM if you pass an invalid parameter. This function raises DATABASE_ERROR if an error occurs while querying data. This function raises ID_NOT_EXIST if the modid is unknown.
The module array contains the following items:
The well-known name of the module
The Filesystem directory in which this modules files exist
The display-friendly name for this module
A short description of this module's functionality
For more information on well-known names of modules please refer to the documentation for pnModGetVar()
// Get information on News module
$modid = pnModGetIDFromName('News');
$modinfo = pnModGetInfo($modid);
pnModGetIDFromName(), pnModGetUserMods(), pnModGetAdminMods(), pnModGetVar()
Previous |
Next |