The new preprocess approach in Webform 4 is nice. The only trouble is that if I impliment a preprocess hook and loop through the rows, there's no way to retrieve the component id without resorting to some ugly string manipulation. This patch makes it possible to get the component id easily for each row, both from a php hook, and also from the client side.
See #1468944: Preprocess variables for components form

CommentFileSizeAuthor
row-cid.patch827 bytescolemanw
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, great suggestion! I like it. I'll put it in next time I'm reviewing features.

quicksketch’s picture

Priority: Normal » Minor
Status: Reviewed & tested by the community » Fixed

Thanks, committed to 4.x branch. :)

Status: Fixed » Closed (fixed)

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