Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Nov 2008 at 05:58 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hswong3i commentedReroll based on CVS HEAD.
Comment #4
hswong3i commentedReroll based on CVS HEAD.
Comment #6
dropcube commentedI think is better to concentrate efforts first in #257032: Split block $ops into separate functions
Comment #7
Crell commentedReactiviating.
Comment #8
zoo33 commentedWow. Duplicated efforts:
#302263: Rework block.module for the new data api
@hswong3i: If you want to compare notes or work together on this somehow, let me know. Both our patches need to be re-rolled.
But maybe dropcube is right about #257032: Split block $ops into separate functions
Comment #9
Crell commentedComment #10
berdirOk, another patch, also converted the dynamic queries and added a tag to the block loading query.
Comment #11
dries commentedCommitted to CVS HEAD. Thanks!
Comment #12
chx commentedWhy are we having explicit int casts for default values? They were not needed before. That's curious.
Comment #13
Crell commentedFALSE and NULL no longer auto-fold to int 1, so that has to be done explicitly. I do not want to do that automatically because of the performance hit.
Comment #14
chx commentedBut why in #default_value and not in the save routines...? And, in general, if we are using d_w_r which retrieves the schema anyways, then we could autocast there.
Comment #15
berdirNot sure, the first one is obviously needed, but I can't find a reason for these, manual testing and the block tests work, let's ask the test bot...
Comment #16
berdirComment #18
berdirOk, so that obviously doesn't work, not sure why my local tests did work though. Another try which converts the value only before saving...
Comment #19
berdirComment #21
berdirThis time for real, tests pass locally...
Comment #22
catchThere should be a space between the (int) and the $var.
Comment #23
berdirRe-roll with casting coding style fixed.
Comment #24
catchLooks good.
Comment #25
dries commentedCommitted to CVS HEAD. Thanks.