You are here

function forena_block_xml in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 forena.common.inc \forena_block_xml()
  2. 6.2 forena.module \forena_block_xml()
  3. 6 forena.module \forena_block_xml()
  4. 7 forena.common.inc \forena_block_xml()
  5. 7.2 forena.common.inc \forena_block_xml()
  6. 7.3 forena.common.inc \forena_block_xml()
  7. 7.4 forena.module \forena_block_xml()

Send report block XML Enter description here ...

Parameters

unknown_type $block_name:

1 string reference to 'forena_block_xml'
forena_menu in ./forena.module
Implementation of hook_menu.

File

./forena.module, line 580

Code

function forena_block_xml($block_name = '', $parms = NULL) {
  $block_name = str_replace('.', '/', $block_name);
  if ($parms === NULL) {
    $parms = array_merge($_GET, $_POST);
    unset($parms['q']);
  }
  $data = forena_data($block_name, $parms, FALSE);
  if (is_object($data) && method_exists($data, 'asXML')) {
    header('Content-Type: text/xml');
    print $data
      ->asXML();
  }
}