...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"version": "1.0.0",
"name": "My Module Name",
"description": "A module like no other!",
"authors": [
{
"name": "Phillips Data, Inc.",
"url": "http://www.blesta.com"
}
],
"package": {
"name_key": "input_name_key"
},
"service": {
"name_key": "service_field_key"
},
"module": {
"row": "Signular Form of Module Row",
"rows": "Plural Form of Module Row",
"group": "Module Group Name",
"row_key": "module_row_field_key"
}
} |
Definition
Option | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
version | The version of the module. This should be a semantic version number. | ||||||||||
name | The name of the module. This may also be a language definition. | ||||||||||
description | A brief description of the module.
| ||||||||||
authors | An array of author objects.
| ||||||||||
logo | The path within the module to the logo file. If not set, defaults to views/default/images/logo.png. | ||||||||||
package | An object of service settings.
| ||||||||||
service | An object of service settings.
| ||||||||||
module | An object of module settings.
|
Using the Configuration
To use the configuration file you must include it within the constructor of your module using the loadConfig() method.
...