Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2010 at 22:59 UTC
Updated:
28 Oct 2010 at 17:48 UTC
Jump to comment: Most recent
Comments
Comment #1
mattyoung commentedYes, this has been discussed before:
http://drupal.org/node/374645#comment-1262479
http://drupal.org/node/405578
Comment #2
jhodgdonI'm confused from reading those other issues. Does this just need to be documented in Drupal 6, or does it also apply to Drupal 7?
Comment #3
mattyoung commentedI tested this and it's no longer a problem with D7
I wrote a tiny little module to call theme() in hook_init():
hookinitthemebugtest.info:
hookinitthemebugtest.module
Comment #4
jhodgdonOK. Thanks for confirming that theme() is ok to call in hook_init() in Drupal 7, as this note says it should be: http://drupal.org/node/405578#comment-2206974
The original issue also mentions t() and node_load() as other functions not to call in hook_init(). Any ideas on that for Drupal 7?
Comment #5
jhodgdonLooks like this is still a question for Drupal 7 documentation. I don't know the answer... anyone?
If all those are ok in D7, please move this issue back to D6 for doc fixes.