function twilio_twiml_load_multiple in Twilio 7
Load TwiML data from the DB.
Parameters
array $twiml_ids: An array of TwiML machine name to load.
Return value
array An array of TwiML documents or FALSE
2 calls to twilio_twiml_load_multiple()
- twilio_twiml_manager_form in twilio_twiml/
twilio_twiml.admin.inc - TwiML Manager form.
- twilio_twiml_options_list in twilio_twiml/
twilio_twiml.module - Generate an options list of all TwiMLs.
File
- twilio_twiml/
twilio_twiml.module, line 140 - Twilio TwiML module
Code
function twilio_twiml_load_multiple($twiml_ids = FALSE) {
if (!empty($twiml_ids) && is_array($twiml_ids)) {
$result = db_select('twilio_twiml', 't')
->fields('t')
->condition('twiml_id', $twiml_ids)
->execute()
->fetchAll();
return $result;
}
else {
$result = db_select('twilio_twiml', 't')
->fields('t')
->execute()
->fetchAll();
return $result;
}
return FALSE;
}