I ran into a problem over at: #1284694: Tweak UI of issue following (bluecheese)

I wanted to override theme_project_issue_summary() so that we could stick the follow/unfollow link at the top of the page, above all the "Jump to" links. However, to invoke flag_create_link() we need the issue nid. Sadly, this theme function doesn't get that kind of context. I know we *could* do the horrible hack of calling arg() and node_load() and all that insanity, but I'd rather just fix this theme function to pass in an $issue node object so that implementors can get to useful properties of the issue when generating the markup for this header section.

I've got it working locally, stay tuned for a patch.

Comments

dww’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB
dww’s picture

Status: Needs review » Fixed

Committed to master and pushed.

dww’s picture

p.s. While I was at it, I just converted this into a theme template file which is a lot easier to deal with. Way too much business logic happening in the theme function itself. That's now a template_preprocess callback.
http://drupal.org/commitlog/commit/1894/28cdabaef80f46f2b9fba1dd72d30d90...

Automatically closed -- issue fixed for 2 weeks with no activity.