I want to run a database query in another CRM database after a user has registered. I have the following function in my sugar_crm module eg:
function sugar_crm_user_register_submit($form, &$form_state)
{
// some code to run a database query in SugarCRM
ddl("User registration form submitted to CRM");
}
However, the function doesn't appear ever to be called. What am I doing wrong here?