Description
This function lists a cPanel-supported scripting language's installed 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::langlist function returns possible values.
|
perl |
sys |
boolean |
Required Whether to return the account's installed modules. |
|
1 |
Returns
Return |
Type |
Description |
Possible values |
Example |
info |
string |
Any relevant information. |
A string value. |
Stable |
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. |
1.2.3 |
installed |
string |
The module's installed version. |
|
1.2.3 |
module |
string |
The module's name. |
A module name. |
XML_Util |
stable |
boolean |
The module's stable version. |
A module version. |
1.2.3 |
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 |