[development] Context in Drupal 6

Earl Miles merlin at logrus.com
Sat Dec 8 16:45:52 UTC 2007


Karoly Negyesi wrote:
> Now you can do this: $router_item = menu_get_item(); if
> ($router_item['path'] == 'node/%' && $router_item['access']) $node =
> $router_item['map'][1] ...

This isn't quite the same. One thing I've realized while writing the 
context system in Panels 2 is that arguments are only one source of 
context. I also have relationships, which are a very important source of 
context, and built-in contexts, which are maybe not quite as important 
in this scenario.

So it's a half-way step, but it is only half way, and it still requires 
the context consumer to have entirely too much knowledge of the 
construction of the URL, IMO.


More information about the development mailing list