Remove $handler from views
|Reported by:||ewinslow||Owned by:|
|Priority:||normal||Milestone:||Elgg 1.8 Beta 2|
The menu registering code should be the only code that has to concern itself with what the "handler" in urls is going to be. This was put into views, I assume, as a shortcut to encourage standard url structure.
It would be much better if, instead, plugins were encouraged to use hooks to override links with their own custom url, as opposed to the view passing $handler to its metadata menu. We just need to document the names of standard links, such as "edit" on the metadata menu.
Change History (4)
comment:3 Changed 2 years ago by cash
- Milestone changed from Elgg 1.8.0 to Elgg 1.8 Beta 2
- Type changed from Defect to Enhancement