I just discovered this tonight the hard way. ;) In addition to _submit and _validate functions' arguments having changed, pre_render's functions' have as well.

What used to be x_prerender($form_id, $form) should now be just x_prerender($form) (or $elements, if you want to use the same nomenclature as drupal_render()).

I made an attempt at documenting this at http://drupal.org/node/144132#pre-render, so at least there's something to link to about it.

CommentFileSizeAuthor
#1 coder_223162.patch1.82 KBstella

Comments

stella’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

Try the attached patch.

Cheers,
Stella

webchick’s picture

Status: Needs review » Reviewed & tested by the community

That takes care of it! :)

stella’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.x and 6.x versions.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.