Documentation > Module Options

Module Options

Module Options are global storage accessible by any module.  These are editable in the Options menu by any user with the correct permissions.

Functions

modOpts::AddOption($ident,$name,$group=NULL,$init='',$fieldType=itTEXT,$values=NULL)

Add an option to the global option table.

$ident string Identifier used to retreive the data with GetOption
$name string Visible name for the option
$group string Name of tab to for option to appear under
$init string Value to initialise option with
$fieldType InputType constant Desired input type for editing the field
$values array Values if input type accepts multiple posibilities.

modOpts::GetOption($ident)

Retreive a value defined by AddOption

$ident string Identifier used to retreive the data with GetOption
Fork me on GitHub