I am developing a custom module and I need an URL that would trigger an action when called.
The purpose is for an external server to call this address passing some variables through
$_REQUEST['message'], and then return a STRING with the success/error string. So the URL in question is only supposed to be called by a machine.
I now have a PHP file in the root that does the job, but I'd like to integrate it to the Drupal way through this custom module.... Is there a way to do this?