Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
other
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Feb 2009 at 07:35 UTC
Updated:
2 May 2009 at 16:05 UTC
Jump to comment: Most recent file
Guys,
The drupal_set_html_head function, on includes/common.inc, line 132, is misleading: it does not SET, but ADD HMTL header data. It would be much more adequate to rename it to drupal_add_html_head.
regards,
massa
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | rename_drupal_set_html_head.patch | 4.2 KB | Race.it |
Comments
Comment #1
Race.it commentedComment #2
Race.it commentedComment #3
Race.it commentedComment #4
stewsnoozesubscribe
Comment #5
dries commentedThis looks good to me. Marking it RTBC -- will commit it later (unless someone objects).
Comment #6
Zarabadoo commentedThis makes perfect sense to me.
Comment #7
crashtest_ commentedJust commenting that it makes more sense this way. Good change.
Comment #8
webchickI asked for some themers/designers in #drupal-design to +1 this change, and they did so committed to HEAD. Makes a lot of sense to me, too. :)
I'm marking needs work now because this needs to be documented at http://drupal.org/node/224333. @cytefx, once you've done that, could you please mark this issue to 'fixed'?
Comment #9
Race.it commentedUpdated the document to have the following comment
The function drupal_set_html_head() has been renamed to drupal_add_html_head().
(issue) In Drupal 6, the drupal_set_html_head() function, is misleading: it does not SET, but ADD HMTL header data. In Drupal 7, it has been renamed to drupal_add_html_head().
Comment #11
sunThis made base core API pretty confusing. See #451604: Rename drupal_set_header().