Single theme function converted (block_admin_display). Moved to block.admin.inc.

Comments

dvessel’s picture

StatusFileSize
new8.46 KB

Whoops. minor doxygen change.

dvessel’s picture

StatusFileSize
new8.46 KB

And again.. misnamed block-admin-display.tpl.php in doxygen.

dries’s picture

I don't think block-admin-display.tpl.php is a likely candidate to be themed, but hey ... why not.

dvessel’s picture

Yeah, I just got a list from Merlinofchaos so I'll focus on the more important ones from here on out. But block_admin_display had a good chunk of code moved over to block.admin.inc so there will be less to load.

dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks dvessel.

dvessel’s picture

Status: Fixed » Needs work

Gah!! I'm sorry Dries, drupal_rebuild_theme_registry() was in there while I was debugging and forgot to pull it. Do I create a small patch just to remove it or redo the whole thing?

dvessel’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new515 bytes

Tiny patch removes my error.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

eaton’s picture

Category: task » bug
Priority: Normal » Critical
Status: Fixed » Active

without at least *SOME* call to rebuild the theme registry, the block administration page never appears on a fresh install. HEAD is currently borked.

dvessel’s picture

Darn, it must be because the move to block.admin.inc which goes missing the first time the registry gets cached. Might be better to just move it back to block.module.

Sorry, my bad.

dvessel’s picture

StatusFileSize
new5.46 KB

Dries: I assume you committed this originally due to having less code in the main block.module. This patch moves it back so it may not be of much value anymore but I provide it here just in case.

Lessen learned, never include theme functions that are inside conditionally included files.

dvessel’s picture

Status: Active » Needs review
StatusFileSize
new5.46 KB

Dries: I assume you committed this originally due to having less code in the main block.module. This patch moves it back so it may not be of much value anymore but I provide it here just in case.

Lessen learned, never include theme functions that are inside conditionally included files.

dvessel’s picture

StatusFileSize
new5.46 KB

Dries: I assume you committed this originally due to having less code in the main block.module. This patch moves it back so it may not be of much value anymore but I provide it here just in case.

Lesson learned, never include theme functions that are inside conditionally included files.

dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)
dvessel’s picture

Priority: Critical » Minor
Status: Closed (fixed) » Reviewed & tested by the community

Reopening this due to a minor api change to help in these conditions. Code moved back to block.admin.inc and set a "file" for the registry.

dvessel’s picture

StatusFileSize
new5.75 KB

the patch..

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks. (Btw, did we properly document that API change in the documentation?)

dvessel’s picture

Not yet, it'll be changed in both the theme, and module dev guide.

Anonymous’s picture

Status: Fixed » Closed (fixed)