Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2007 at 21:24 UTC
Updated:
1 Sep 2009 at 03:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
fgmMaybe it's still time to at least fix it in the documentation http://api.drupal.org/api/function/theme_xml_icon/6, so that users tempted to use it on their all-new shiny D6 site would know that they should use theme_feed_icon instead ?
(this is why I'm resetting it to D6, not to request a code change: I agree with you on the fact that it is too late for this.) Once D6 documentation is fixed, we can bump to D7 again.
Comment #2
scoutbaker commented+1 for documenting this for D6.
The current patch says, "For most use cases, this function has been superseded by theme_feed_icon." As someone new, I would wonder in what case I would use this function over theme_feed_icon. Since this is really a depracated function, wouldn't it be better to just say, "This function has been superseded by theme_feed_icon," and not leave the use question open at all?
Comment #3
moshe weitzman commentedxml != feed so i think the proposed text is the right balance.
Comment #4
gábor hojtsyWell, I modified the patch for coding style.
- We have one line distinct function descriptions, so one empty line after that.
- Function names should have () after them (both in text and @see).
- Dot at end of sentence.
Committed this one.
I am not sure we need this function in Drupal 7 though, not because generic XML buttons might not be needed, but because this does not look like a good core idea. So reopening for Drupal 7.
Comment #5
lilou commented+1
theme_xml_icon()andmisc/xml.pngare not call in drupal core ...Comment #6
lilou commentedRemember :
#276439: Tests needed: theme.inc
#282540: Tests for themes
Comment #7
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #8
mgiffordJust touched these functions - http://drupal.org/node/81794#comment-1544260
Thought this might be a way of at least cutting down the extra code.
Although grepping and removing all instances of theme_xml_icon() might be the best approach.
Mike
Comment #9
mgiffordOr since it's really not really used from what I can tell and it's very redundant, why not remove it. Not sure why last patch didn't stick, but hopefully this one will.
It's got the enhancements I brought in here - http://drupal.org/node/81794#comment-1544260
But I've just eliminated the references to the xml_icon
Comment #10
dries commentedCommitted to CVS HEAD. Thanks!
Comment #12
deekayen commentedmisc/xml.png remains - should be removed.
Comment #13
webchickThanks. :)