PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
get module id from name
int pnModGetIDFromName(module);
pnModGetIDFromName() obtains a module ID in this PostNuke system.
The well-known name of a module for which to obtain the module ID
This function returns the module ID for the given module. 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 MODULE_NOT_EXIST if the module doesn't exist.
For more information on well-known names of modules please refer to the documentation for pnModGetVar()
// Obtain ID for News module
$modid = pnModGetIDFromName('News');
Previous |
Next |