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
| Comment | File | Size | Author |
|---|---|---|---|
| row-cid.patch | 827 bytes | colemanw |
Comments
Comment #1
quicksketchThanks, great suggestion! I like it. I'll put it in next time I'm reviewing features.
Comment #2
quicksketchThanks, committed to 4.x branch. :)