Description
This function adds an item to the current dynamicui.conf
file.
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 |
file |
string |
Required A file that contains the lines to add to the dynamicui.conffile. |
A valid filename. |
brandingchanges |
Returns
Return |
Type |
Description |
Possible values |
Example |
status |
boolean |
Whether the function succeeded. |
|
1 |
reason |
string |
A message of success, or an error message. |
|
OK |
dynamicui.conf |
string |
Thedynamicui.conffile's location. |
A valid filepath, relative to the user's home directory. |
/user/cpanelbranding/x3/mypackage/dynamicui.conf |
result |
boolean |
Whether the function succeeded. |
|
1 |