O'Reilly logo

Drupal 7 Webform Cookbook by Douglas Vernon Denny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying and reporting component data

Having detailed the rendering requirements of our input component for client forms, we now turn our attention to how our component data will be displayed and formatted for the various types of output that Webform offers us. The following functions include handling submitted data for the viewing of submissions, building of e-mails, listing of submission results, and when downloading data in CSV files.

We had a requirement in our component specification to ensure that the IMEI numbers be stored in the database as 15 contiguous digits, but should be specially formatted in the form 12345678-123456-1 when data was being viewed or downloaded. To satisfy this requirement we include a webform_imei_display_format ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required