Description
This function lists available branding packages.
Note:
cPanel API 2's Branding
module only modifies data for the x3 theme.
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
Input |
Type |
Description |
Possible values |
Example |
onlyshowyours |
boolean |
Whether to only return the user's branding packages. This parameter defaults to 0. |
|
0 |
showroot |
boolean |
Whether to only return system branding packages. This parameter defaults to 0. |
|
0 |
skipglobal |
boolean |
Whether to only return customized branding packages. This parameter defaults to 0. |
|
1 |
skiphidden |
boolean |
Whether to only return branding packages that the user does not own. This parameter defaults to 0. |
|
0 |
Returns
Return |
Type |
Description |
Possible values |
Example |
disabled |
boolean |
Whether the branding package is disabled. |
|
0 |
types |
hash |
A hash of branding package type information. |
This hash includes thedownloadlinktext, pkg, andtype parameters. |
|
downloadlinktext |
string |
The branding package's download link text. The function returns this parameter in the typeshash. |
|
Download (Yours) |
pkg |
string |
The branding package name. The function returns this parameter in the typeshash. |
A string value. |
mobile |
type |
string |
Whether the branding package is system-owned or user-owned. The function returns this parameter in the typeshash. |
|
yours |
pkgname |
string |
The branding package name. |
A string value. |
mobile |
previewsmimg |
string |
The path to the branding package's preview image. |
A file path. |
|
selectopt |
string |
A parameter that always returns selected. |
selected |
selected |
pkgchecked |
string |
Whether the account currently uses the branding package. |
|
checked |
previewimg |
string |
The path to the branding package's preview image. |
A file path. |
|
pkg |
string |
The branding package name. |
A string value. |
mobile |
selected |
boolean |
A boolean value that is always 1 |
1 |
1 |
result |
boolean |
Whether the function succeeded. |
|
1 |