Currently the content.token.inc file, that holds the token generation code, is included in content_init().

hook_init() is not fired on update.php, thus node_save() calls in hook_update_N() completely mess pathauto aliases containing CCK tokens.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Attached patch includes the file directly at the root of content.module

yched’s picture

Status: Needs review » Fixed

Committed.

yched’s picture

Actually, module_load_include() in global context is frowned upon - #599122: Do not use module_load_include() in global context, I even RTBC'ed that patch.

New patch using require_once instead, and moving all field-type tokens to their providing modules.
(diff against 2.x before patch #1)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

MegaChriz’s picture