Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
markup
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jul 2010 at 03:02 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jensimmons commentedAs asimmonds pointed out here: http://drupal.org/node/849862#comment-3185158 I followed what is in core, using 'highlight' for the var.
I agree with sun, I prefer 'featured' to 'feature' — really, they mean very different things. A piece of content is featured; something the tool does is a feature.
I didn't want to change 'highlight' in case something in core or in contrib was looking for that preexisting region for placing something automatically. While consistency in naming variables is preferred, having consistency between core and the Bartik theme is more important, imo.
Remember, the variable names are not exposed to the GUI interface user. They'll just see the labels.
Should we change "highlight" to "highlighted" in core itself? And change it in Bartik too?
Comment #2
sunThanks for your thorough analysis! Since "highlight" was introduced for D7 (I think), we should ideally fix it to "highlighted" throughout core. It would be wrong to introduce this wrong name, resp. mismatch.
Comment #3
jacineYes, agreed. Here's a patch.
Comment #5
sun.info file?
Comment #6
jacineYes, .info file would help. Guess my edit didn't stick :P Sorry about that.
Looks good now.
Comment #7
sunAight.
Comment #8
dries commentedCommitted to CVS HEAD.
Comment #9
pwolanin commentedShould be rolled back - impacts any contrib themes already ported to D7. This is way past API freeze and causes pain for no technical reason.
Also - longer class names == bandwidth suck.
Comment #10
David_Rothstein commentedThis requires a documentation update at http://drupal.org/node/254940#highlight-region
Given that this is not a required theme region, I don't see it as an actual API change. Maybe a "pseudo" API change in the sense that themes which had previously tried to follow core (either partially or, via not defining their own regions and falling back on the defaults, completely) need to either decide to stop following core's lead or else update their theme. But there's nothing here that prevents a theme sticking with
'highlighted'[edit: 'highlight'] if it wants to.Comment #11
jacineI updated the docs here and here.
FTR, I don't think this should be rolled back.
Comment #12
David_Rothstein commentedI reviewed the doc changes - they mostly looked good, although the new instructions seem to assume that your theme already defines its own custom regions (and therefore needs to add this to its info file specifically)...
But if you have a theme which (like Garland) just inherits the core defaults, then I believe you don't have to do anything to your .info file at all to pick up this change; rather, you get it automatically, and only have to do something to your info file if you want to specifically avoid having it, right?
Comment #13
jacineOk, I tried to clarify. Hopefully it's better :)
Comment #14
David_Rothstein commentedSorry for the delayed response :)
The new docs look good. In the interim, someone else had come along after your edits and changed one of the docs back to say 'highlight' (I have no idea why?), so I fixed that again to say 'highlighted'. I think this is well-documented now, and we can close it.