Description
This function lists a language module system's available modules.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
lang |
string |
Required The scripting language's short name. |
An available scripting language's short name. Note: The LangMods::langlistfunction returns possible values.
|
perl |
skip |
integer |
The number of responses to skip at the beginning of the function's output. Use this parameter with the wantparameter to paginate the function's output. This value defaults to 0. |
A positive integer. |
3 |
want |
integer |
The number of responses to return in the function's output. This value defaults to 100. |
A positive integer. |
6 |
Returns
Return |
Type |
Description |
Possible values |
Example |
info |
string |
Any relevant information about the module.. |
A string value. |
Your configuration's swiss-army knife. |
docurl |
string |
The system's homepage. |
A URL. |
http://pear.php.net/package/Config/docs |
latest |
string |
The module's latest version. |
A module version number. |
1.3.7 |
installed |
string |
The module's installed version. |
|
1.3.3 |
module |
string |
The module's name. |
A module name. |
Config |
stable |
string |
The module's stable version. |
A module version number. |
1.3.5 |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if there was an error. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |