Posted by puregin on February 8, 2006 at 6:15pm
Jump to:
| Project: | Drupal core |
| Version: | 6.x-dev |
| Component: | base system |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
The 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 :)