Use the following code to change a View's order when a specific URL parameter and value are set. Replace 123 with the ID of your View, replace my_param with your parameter name, replace custom_value with your specific parameter value, and replace 150 with the ID of the field you want to order by.
There may be times when an email or another form action is set to trigger on update or after successful payment, but you really only want it to trigger once. This example uses two hooks: one to set when an action has been triggered, and one to stop it the next time.
Some actions may trigger more than once. A recurring payment can trigger an action after some time has passed. This example stops the form action if the entry was not created on the same day.