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

bdragon’s picture

Version: x.y.z » 6.x-dev
Status: Active » Closed (fixed)

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 :)