Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2006 at 18:15 UTC
Updated:
7 Sep 2007 at 01:38 UTC
Chx has called volunteers to help remove calls to arg() in Drupal core, to help prepare for the new approach to URL aliasing.
There are roughly 190 instances in core. For modules, the idea is to move any code which needs to inspect the path to hook_menu(). This may require converting paths to node ids in hook_menu(), grabbing arguments from the path, and passing these off to appropriate handler functions.
Djun
Comments
Comment #1
bdragon commentedThe new menu system being in has helped this stuff to happen. I'm sure there's still some arg() floating around, but I doubt it is ~190 anymore :)