Closed (fixed)
Project:
Flag
Version:
7.x-2.x-dev
Component:
Flag core
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2010 at 00:04 UTC
Updated:
10 Oct 2010 at 10:00 UTC
Flag is not currently compatible with the latest D7 (including 'alpha7'):
According to #878092: Regression from D7 alpha: themes are unable to render one group of node links separately from another, modules should not add their own 'ul' to the node links.
| Comment | File | Size | Author |
|---|---|---|---|
| node_view_links.diff | 578 bytes | mooffie |
Comments
Comment #1
mooffie commentedNotes:
- The "(array)" cast in the patch handles NULL (when there are no links).
- Why havn't I fixed our hook_comment_view() as well? Because the aforementioned #878092 doesn't "fix" it. I'll keep an eye on this.
Comment #2
quicksketchIs there a reason why you used this approach:
Instead of just this?
Comment #3
mooffie commented#links contains an array of links that's passed directly to theme_links. It looks like:
(These keys are used by theme_link as CSS classes.)
We want to extend this array. With the code you suggest,
$node->content['links']['#links'][] = flag_link(...), we'd end up with:IMPORTANT:
I read (at that linked issue) that they're going to revert this "fix" (a good thing, because the previous behavior has its advantage). So we'll eventually revert this patch as well (if we commit it).
You may say: so let's do nothing and wait for them to revert their "fix". That's one possibility, but I'm for committing this patch because:
- It costs nothing to revert it.
- We don't know when they'll revert the "fix". It turns out Flag wasn't compatible with Drupal HEAD (including alpha7) since 2010-08-30 already.
(I have one more reason but I'll explain it if these two aren't enough.)
Comment #4
quicksketchHey mooffie, I trust your judgement and though I'm not real happy trying to chase HEAD, I think it would be fine if you committed the change. I realized the advantages to your approach after writing my last comment. Casting as an array is likely necessary in case flag_link() returns FALSE and doesn't add anything. So overall sounds great to me. Thanks for keeping up with things.
Comment #5
mooffie commentedCommitted.
http://drupal.org/cvs?commit=427624