Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
name = FGP Custom
description = Miscellaneous custom stuff for FGP
core = 6.x
<?php
function fgp_init() { // This code runs on every page load (i.e., when the module is initialized)
if ($_GET['q'] == 'success') { // If the current page is the /success page
drupal_goto(); // Redirect to the front page
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment