You are here

function sms_bootstrap_response in SMS Framework 7

Send a HTTP response.

Parameters

array $response: array('headers' => array('name' => 'value'), 'body' => 'text')

1 call to sms_bootstrap_response()
sms_incoming.inc in bootstrap/sms_incoming.inc
Include file to (ab)use the cache router to accept and queue SMS.

File

bootstrap/sms_incoming.inc, line 116
Include file to (ab)use the cache router to accept and queue SMS.

Code

function sms_bootstrap_response($response) {

  // Allow SMS provider to add content to response.
  foreach ($response['headers'] as $name => $value) {
    drupal_add_http_header($name, $value);
  }
  drupal_send_headers();
  print $response['body'];
}