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

Analyzing component data

The Webform module offers a standard set of basic statistics on components that receive user input data. For our IMEI component we will implement an analysis that shows how many blank and non-blank entries have been submitted to our component.

If we had access to a complete TAC (Type Allocation Code) database, we might have been able to report on the number of submissions we have received per mobile telephone manufacturer and global regions based on the first group of eight digits. Unfortunately the TAC data is not widely accessible, so we are somewhat limited.

How to do it...

Let's code the function that will perform the database analysis of our IMEI component:

/** * Implements _webform_analysis_component(). */ function ...

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