You are here

function forena_block_xml in Forena Reports 7

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.5 forena.module \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.common.inc, line 997
Common functions used throughout the project but loaded in this file to keep the module file lean.

Code

function forena_block_xml($block_name = '') {
  $block_name = str_replace('.', '/', $block_name);
  $parms = $_GET;
  unset($parms['q']);
  $xml = forena_invoke_data_provider($block_name, $parms);
  if (is_object($xml)) {
    header('Content-Type: text/xml');
    print $xml
      ->asXML();
  }
}