function forena_block_xml in Forena Reports 7.2
Same name and namespace in other branches
- 8 forena.common.inc \forena_block_xml()
- 6.2 forena.module \forena_block_xml()
- 6 forena.module \forena_block_xml()
- 7.5 forena.module \forena_block_xml()
- 7 forena.common.inc \forena_block_xml()
- 7.3 forena.common.inc \forena_block_xml()
- 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 458 - 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 = FrxReportGenerator::instance()
->invoke_data_provider($block_name, $parms);
if (is_object($xml)) {
header('Content-Type: text/xml');
print $xml
->asXML();
}
}