DOCUMENTATION

Search »

$module->getSettings()

This function is the sister of $module->setSettings() described previously. It retrieves values stored in the database for your module. It accepts a single parameter: a string of the setting name (key), or an array of strings if you want to retrieve multiple values. For example:

The $module->setSettings() and $module->getSettings() functions are good for small snippets of data. If you need to store larger quantities of data, we recommend you create your own database table.