diff --git a/globalredirect.module b/globalredirect.module index 7f9adc0..6f7a7fa 100644 --- a/globalredirect.module +++ b/globalredirect.module @@ -183,11 +183,9 @@ function globalredirect_init() { $langcode = isset($options['language']->language) ? $options['language']->language : ''; $alias = drupal_get_path_alias($current_path, $langcode); - // TODO: This looks wrong for D7... maybe a hook? - if (function_exists('custom_url_rewrite_outbound')) { - // Modules may alter outbound links by reference. - custom_url_rewrite_outbound($alias, $options, $current_path); - } + // Modules may alter outbound links by reference. + drupal_alter('url_outbound', $alias, $options, $current_path); + if ($prefix && $alias) { $prefix .= '/'; }