tplify block module

dvessel - July 17, 2007 - 04:54
Project:Drupal
Version:6.x-dev
Component:theme system
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

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

AttachmentSize
tplify_block_1.patch8.47 KB

#1

dvessel - July 17, 2007 - 04:58

Whoops. minor doxygen change.

AttachmentSize
tplify_block_2.patch 8.46 KB

#2

dvessel - July 17, 2007 - 05:05

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

AttachmentSize
tplify_block_3.patch 8.46 KB

#3

Dries - July 17, 2007 - 07:45

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

#4

dvessel - July 17, 2007 - 07:49

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.

#5

Dries - July 18, 2007 - 14:08
Status:needs review» fixed

Committed to CVS HEAD. Thanks dvessel.

#6

dvessel - July 19, 2007 - 15:58
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?

#7

dvessel - July 20, 2007 - 16:57
Status:needs work» reviewed & tested by the community

Tiny patch removes my error.

AttachmentSize
rm_rebuild_theme_registry.patch 515 bytes

#8

Dries - July 21, 2007 - 09:13
Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks.

#9

eaton - July 24, 2007 - 14:12
Category:task» bug report
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.

#10

dvessel - July 24, 2007 - 15:07

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.

#11

dvessel - July 24, 2007 - 15:37

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.

AttachmentSize
tplify_block_mv.patch 5.46 KB

#12

dvessel - July 24, 2007 - 15:37
Status:active» needs review

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.

AttachmentSize
tplify_block_mv_0.patch 5.46 KB

#13

dvessel - July 24, 2007 - 15:38

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.

AttachmentSize
tplify_block_mv_1.patch 5.46 KB

#14

Dries - July 24, 2007 - 18:18
Status:needs review» fixed

Committed to CVS HEAD. Thanks.

#15

Anonymous - August 7, 2007 - 18:50
Status:fixed» closed

#16

dvessel - August 31, 2007 - 15:46
Priority:critical» minor
Status:closed» 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.

#17

dvessel - August 31, 2007 - 15:47

the patch..

AttachmentSize
mv_admin_block.patch 5.75 KB

#18

Dries - September 1, 2007 - 05:31
Status:reviewed & tested by the community» fixed

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

#19

dvessel - September 1, 2007 - 16:45

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

#20

Anonymous - September 15, 2007 - 16:53
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.