You are here

function node_registration_url_outbound_alter in Node registration 7

Implements hook_url_outbound_alter().

File

./node_registration.module, line 1240

Code

function node_registration_url_outbound_alter(&$path, &$options, $original_path) {
  if (isset($_GET['secret'])) {
    $module_path = _node_registration_type_to_uri('node_registration');

    // Only pass this secret on to other Registration pages.
    if (is_int(strpos($path, 'register')) || is_int(strpos($path, $module_path)) || is_int(strpos($path, 'registration'))) {
      $options['query']['secret'] = $_GET['secret'];
    }
  }
}