Refactor to remove arg() calls

puregin - February 8, 2006 - 18:15
Project:Drupal
Version:6.x-dev
Component:base system
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

bdragon - September 7, 2007 - 01:38
Version:x.y.z» 6.x-dev
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.