PostNuke Help

Previous
pnModGetAdminMods

Home
up

Next
pnModGetInfo


pnModGetIDFromName

get module id from name

Synopsis

int pnModGetIDFromName(module);

Description

pnModGetIDFromName() obtains a module ID in this PostNuke system.

Parameters

module

The well-known name of a module for which to obtain the module ID

Return Values

This function returns the module ID for the given module. This function returns void if an exception was raised.

Exceptions

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.

Notes

For more information on well-known names of modules please refer to the documentation for pnModGetVar()

Examples

// Obtain ID for News module
$modid = pnModGetIDFromName('News');
       

See Also

pnModGetInfo()


Previous
pnModGetAdminMods

Home
up

Next
pnModGetInfo