PostNuke Help

Previous
pnModUnregisterHook

Home
up

Next
pnRedirect


pnModURL

create module URL

Synopsis

string pnModURL(modname, type, func, args);

Description

pnModURL() creates a PostNuke-compatible URL for a specific module function.

Parameters

modname

The well-known name of a module for which to create the URL

type

The type of function for which to create the URL; currently one of 'user' or 'admin'

func

The actual module function for which to create the URL

args

An associative array of arguments. The exact number and type of arguments is function-dependent

Return Values

This function returns a module URL string if successful. This function returns void if an exception was raised.

Exceptions

This function raises BAD_PARAM if you pass an invalid parameter.

Notes

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

Examples

// Create a URL to the News 'view' function with parameters 'sid' set to 3
// and 'index' set to '0'
$url = pnModURL('News', 'user', 'view', array('sid' => 3, 'index' => 0));
       

See Also

pnModGetVar(), pnModFunc()


Previous
pnModUnregisterHook

Home
up

Next
pnRedirect