summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-04-11 19:58:27 (GMT)
committerwebchick2014-04-11 19:58:27 (GMT)
commit88f026ebab668aa35480c926fd9af7c4344f39c6 (patch)
tree7a122191348f847889877a8b5b666bd084b79b81
parent1104509d1d4aaad15cee05620fcb96696d44d4b4 (diff)
Issue #2228795 by Gaelan | eojthebrave: Where did hook_url_outbound_alter go?.
-rw-r--r--core/modules/system/system.api.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php
index b995551..550cd28 100644
--- a/core/modules/system/system.api.php
+++ b/core/modules/system/system.api.php
@@ -2440,36 +2440,6 @@ function hook_system_themes_page_alter(&$theme_groups) {
}
/**
- * Alters outbound URLs.
- *
- * @param $path
- * The outbound path to alter, not adjusted for path aliases yet. It won't be
- * adjusted for path aliases until all modules are finished altering it. This
- * may have been altered by other modules before this one.
- * @param $options
- * A set of URL options for the URL so elements such as a fragment or a query
- * string can be added to the URL.
- * @param $original_path
- * The original path, before being altered by any modules.
- *
- * @see url()
- */
-function hook_url_outbound_alter(&$path, &$options, $original_path) {
- // Use an external RSS feed rather than the Drupal one.
- if ($path == 'rss.xml') {
- $path = 'http://example.com/rss.xml';
- $options['external'] = TRUE;
- }
-
- // Instead of pointing to user/[uid]/edit, point to user/me/edit.
- if (preg_match('|^user/([0-9]*)/edit(/.*)?|', $path, $matches)) {
- if (\Drupal::currentUser()->id() == $matches[1]) {
- $path = 'user/me/edit' . $matches[2];
- }
- }
-}
-
-/**
* Provide replacement values for placeholder tokens.
*
* This hook is invoked when someone calls