module weights matter to Checkbox Validate

gcassie - April 20, 2009 - 01:42
Project:Checkbox Validate
Version:6.x-1.1
Component:Code
Category:bug report
Priority:minor
Assigned:Robert Castelo
Status:active
Description

If you have a module which adds a checkbox via hook_form_alter, you have to make sure that Checkbox Validate has a heavier weight in the system table, or its modifications do not apply.

Might be worth adding some code to the .install to give it a heavier weight by default, but mostly I wanted to make a note of it in case somebody else was struggling.

#1

Robert Castelo - May 24, 2009 - 16:15
Assigned to:Anonymous» Robert Castelo

Good point.

I'm tempted to move the form changes into an after_build function, but that would make it difficult for other modules to alter the form to make a checkbox optional (for whatever reason), your suggestion of adjusting the system table is more flexible.

 
 

Drupal is a registered trademark of Dries Buytaert.