Closed (fixed)
Project:
Webform
Version:
7.x-4.0-alpha9
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2013 at 21:41 UTC
Updated:
16 Aug 2013 at 04:51 UTC
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. :)