Closed (fixed)
Project:
Zen
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2009 at 19:27 UTC
Updated:
11 May 2009 at 02:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
johnalbinJames, like all good ideas, this seems obvious after you suggested it. Nice!
I’m not crazy about your implementation though. Here’s the patch I’m going to commit. It allows modules to add links into the $vars['edit_links_array'] variable. You, of course, could still add a flattend-to-string version of that in $vars['edit_links'], but Zen will continue to use the array version of the variable to re-create the edit links. Make sense?
Comment #2
johnalbinOk. Commited to HEAD (6.x-2.x-dev) and to DRUPAL-6--1 (6.x-1.x-dev).
Thanks, James!
Comment #3
q0rban commentedJohnAlbin, yeah, I wasn't crazy about the implementation either, but I couldn't think of a good way to allow the module to just completely bypass zen altogether if it wanted to. So, correct me if I'm wrong, but your patch doesn't actually allow for the module to do that. So, I'd like to think of a way that you're ok with, where modules can actually override the links that are there, not just add to them.
Comment #4
johnalbinUnfortunately, the theme layer always gets last whack at the variables and the html. So a module can't override anything a theme does. What I committed allows a module to add links to Zen’s block editing links, but not to alter or modify the ones Zen adds.
Unless you do some theme registry wizardry, of course. But you don't need to patch Zen for that.