Needs review
Project:
VoIP Webform
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Apr 2012 at 21:47 UTC
Updated:
21 May 2012 at 20:43 UTC
Jump to comment: Most recent file
This patch does two things:
- Adds a voipwebform_prompt_builder() function that uses the element data to build the required voice prompt for any question/component. This breaks out existing code into its own function so that other modules can access it (i.e. VoIP Webform Recorder).
- Allows the user to override the default prompt provided by the module by supplying a description for the webform component. The description field is handled internally by the webform module.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | voipwebform-prompt-builder-1542644-2.patch | 5.13 KB | matt@antinomia |
| #1 | voipwebform-prompt-builder-1542644-1.patch | 3.97 KB | matt@antinomia |
| voipwebform-prompt-builder.patch | 2.59 KB | matt@antinomia |
Comments
Comment #1
matt@antinomia commentedAdditionally, the patch now:
- Alters the voipwebform_question_router() invoking function to allow multiple modules to handle component input. This will allow VoIP Webform Recorder to alter the prompt of each component to a recorded mp3 file rather than the text-to-speech.
Comment #2
matt@antinomia commentedSome fixes/alterations to the above patch, this one allows everything necessary for the VoIPWebform Recorder module to override component prompts. Needed to pass along the webform $node in the handler in order to make this work.