Description
This function checks whether the account's contact option is enabled.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Contactus::is_enabled
— This function checks whether the account's contact option is enabled.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible Values |
Example |
enabled |
boolean |
Whether the contact option is enabled. |
|
1 |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |