Closed (works as designed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2010 at 20:35 UTC
Updated:
22 Dec 2010 at 00:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
pillarsdotnet commentedComment #2
dave reidAre you sure attributes is required? I thought they'd load in the defaults if not provided?
Comment #3
pillarsdotnet commentedFailure to provide at least an empty array() results in a PHP notice.
From the code:
That first line will result in an "Undefined index" notice.
Comment #4
dave reid@pillarsdotnet: Prove to me that doing theme('image', array('path' => 'pathtofile.png')); causes a problem and that the theme system fails to merge in the default attributes variable of an empty array?
Comment #5
pillarsdotnet commented@Dave Reid -- does the function require attributes or does it not?
And if the function is "for internal use only; module developers must not use" then the documentation should say so.
Comment #6
dave reidPlease read this thread http://drupal.org/node/1001990 - the function already links to http://api.drupal.org/api/drupal/modules--system--theme.api.php/group/th... which explains that it is internal only. There is nothing to fix here.
Comment #7
pillarsdotnet commentedThanks for the education. I've followed up on all the other issues I posted; you don't have to clean up behind me anymore... :)