Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

What is custom_url_rewrite_outbound in Drupal?

2/29/2012

0 Comments

 
Syn: custom_url_rewrite_outbound(&$path, &$options, $original_path)

  1. custom_url_rewrite_outbound is not a hook, it's a function.
  2. You can add to settings.php to alter all links generated by Drupal.
  3. This function is called from url().
  4. This function is called very frequently (100+ times per page) so performance is critical.

This function should change the value of $path and $options by reference.

Parameters:

$path: The alias of the $original_path as defined in the database. If there is no match in the database it'll be the same as $original_path

$options: An array of link attributes such as querystring and fragment. See url().

$original_path: The unaliased Drupal path that is being linked to.

0 Comments



Leave a Reply.

    Archives

    April 2012
    March 2012
    February 2012

    Categor

    All
    Ajax
    Api
    Cross Site Scripting
    Css
    Curl
    Design Patterns
    Drupal
    Exception Handling
    Htaccess
    Html
    Javascript
    Jquery
    Json
    Linux
    Mysql
    Oops
    Php
    Regular Expressions
    Web 2.0
    Webservices
    Wordpress
    Xhtml

    RSS Feed

Powered by Create your own unique website with customizable templates.