Hi,
I would like to add Custom Function in my registrar module so I create function like this. (Ref. https://developers.whmcs.com/provisioning-modules/custom-functions/?search=Admin+Alert)
/* Custom Registrar Commands Button in Admin Page */
function mymodule_AdminCustomButtonArray()
{
$buttonarray = array(
"My Custom Function" => "myCustomFunction",
);
return $buttonarray;
}
// Custom Function
function mymodule_myCustomFunction($params)
{
$result = "myCustomFunction";
return $result;
}
I want to show message "myCustomFunction" when click "My Custom Function" button in registrar command section. But it show the message "The changes to the domain were saved successfully" instead.
How to return the response message as I want ?
Thank you so much in advance for your help.