You are here

function twilio_twiml_load in Twilio 7

Load TwiML data from the DB.

Parameters

String $twiml_id: The TwiML machine name to load.

Return value

array The TwiML data, or FALSE if none.

2 calls to twilio_twiml_load()
twilio_twiml_manager_form in twilio_twiml/twilio_twiml.admin.inc
TwiML Manager form.
twilio_twiml_rules_action_twiml_output in twilio_twiml/twilio_twiml.rules.inc
Action: Output TwiML.
1 string reference to 'twilio_twiml_load'
twilio_twiml_manager_form in twilio_twiml/twilio_twiml.admin.inc
TwiML Manager form.

File

twilio_twiml/twilio_twiml.module, line 119
Twilio TwiML module

Code

function twilio_twiml_load($twiml_id = FALSE) {
  if (!empty($twiml_id)) {
    $result = db_select('twilio_twiml', 't')
      ->fields('t')
      ->condition('twiml_id', $twiml_id, '=')
      ->execute()
      ->fetchAssoc();
    return $result;
  }
  return FALSE;
}