The theming implementation in form_builder while functional in D7 doesn't utilize all of the power of the D7 theming layer. In particular, it doesn't take advantage of theme wrappers and instead has separate functions for the prefix, suffix, and assembly of a form element.

This patch reduces the theming functions and move much of the functional work that is done in the current theme functions to pre_render functions so that themers can focus on the output and not the structure.

Comments

David_Rothstein’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Updating the version, now that the 7.x branch is available.

David_Rothstein’s picture

It looks like this patch also contains partial fixes for #1019130: Form Builder AJAX system doesn't support Drupal.settings and #1019064: positionForm is output to JSON as an array, rather than rendered HTML.

I think for at least one of them the fix in this patch is not complete though. Because of that, those issues may be easier to review first.

David_Rothstein’s picture

StatusFileSize
new12.66 KB

Here's an updated version of the patch that removes those other parts.

quicksketch’s picture

StatusFileSize
new12.87 KB
new12.65 KB

This patch needed a reroll and backport, which I've attached here. I'll review tomorrow hopefully and get this in.

quicksketch’s picture

Status: Needs review » Fixed

After some testing everything still seems to be working correctly. Committed. Thanks again for the patches.

Status: Fixed » Closed (fixed)

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