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.

Comments

matt@antinomia’s picture

StatusFileSize
new3.97 KB

Additionally, 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.

matt@antinomia’s picture

StatusFileSize
new5.13 KB

Some 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.