You are here

function crossdomain_render in Crossdomain 7

1 string reference to 'crossdomain_render'
crossdomain_menu in ./crossdomain.module
Implements hook_menu().

File

./crossdomain.module, line 35

Code

function crossdomain_render() {
  drupal_add_http_header('Content-Type', 'text/xml');
  $domains = variable_get('crossdomain', array());
  $output = "<?xml version=\"1.0\"?>\n\n<cross-domain-policy>\n";
  foreach ($domains as $domain) {
    $output .= "  <allow-access-from domain=\"{$domain}\" />\n";
  }
  $output .= '</cross-domain-policy>';
  print $output;
  exit;
}