[drupal-devel] [feature] i18n - Move drupal_goto to bootstrap.inc and some related features

Jose A Reyero drupal-devel at drupal.org
Mon Jan 24 00:42:13 UTC 2005


 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  Jose A Reyero
 Reported by:  Jose A Reyero
 Updated by:   Jose A Reyero
 Status:       patch
 Attachment:   http://drupal.org/files/issues/i18n_drupal_goto_01.patch (8.41 KB)

This is firs of a serie of patches adding support for some i18n related
features.

This patch:
- moves drupal_goto to bootstrap.inc, making it possible to use it from
the module_init, even for cached pages
- moves url() to bootstrap.inc, as it is needed by drupal_goto, and
includes a check for not to resolve path aliases when called from
bootstrap (it is not needed and would require including lot more stuff
from common.inc)
- adds a simple hook to call 'i18n_url_rewrite' from the function
'url()' , which allows outgoing urls to be rewrited, so some additional
info can be placed in the path.

Jose A Reyero

-- 
View: http://drupal.org/node/16069
Edit: http://drupal.org/project/comments/add/16069





More information about the drupal-devel mailing list