Description
This function creates a branding package's directory.
Note:
cPanel API 2's Branding
module only modifies data for the x3 theme.
- To customize the Paper Lantern theme, use UAPI functions. For more information, read our Guide to cPanel Interface Customization documentation.
- For more information about x3 theme customizations, read our Legacy Guide to x3 Theme Brandingdocumentation.
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 |
pkg |
string |
Required The new branding package name. |
A string value. Note: You cannot use the following values:
|
mypkg |
Returns
Return |
Type |
Description |
Possible values |
Example |
error |
string |
An error message. Note: This function only returns theerror parameter if it failed. |
A string that describes the error. |
Branding package names may not contain the "/" character. |
pkg |
string |
The branding package name. |
The pkg input parameter's value. |
mypkg |
result |
boolean |
Whether the function succeeded. |
|
1 |