function twilio_twiml_display in Twilio 7
Display TwiML to the screen.
1 call to twilio_twiml_display()
- twilio_twiml_rules_action_twiml_output in twilio_twiml/
twilio_twiml.rules.inc - Action: Output TwiML.
1 string reference to 'twilio_twiml_display'
- twilio_twiml_menu in twilio_twiml/
twilio_twiml.module - Implements hook_menu().
File
- twilio_twiml/
twilio_twiml.module, line 162 - Twilio TwiML module
Code
function twilio_twiml_display($twiml) {
// Set the header to XML.
drupal_add_http_header('Content-Type', 'text/xml; utf-8');
// If PHP is enabled run the document through PHP evaluation.
if (module_exists('php')) {
echo php_eval($twiml['data']);
}
else {
echo $twiml['data'];
}
}