PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
set module variable
bool pnModSetVar(module, name, value);
pnModSetVar() sets a module-specific variable on the PostNuke system. If the variable does not exist then it is created.
The well-known name of a module for which to set the variable
The name of the module variable to set
The value to set the module variable with
This function returns true if the update is successful. 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.
For more information on well-known names of modules please refer to the documentation for pnModGetVar()
// Set the version information for the 'News' module
pnModSetVar('News', 'Version', 2);
Previous |
Next |