function forena_data_preview in Forena Reports 7.5
Same name and namespace in other branches
- 8 forena_ui/forena.data.inc \forena_data_preview()
- 7.4 forena.data.inc \forena_data_preview()
1 string reference to 'forena_data_preview'
- forena_menu in ./
forena.module - Implementation of hook_menu.
File
- ./
forena.data.inc, line 75
Code
function forena_data_preview() {
$args = func_get_args();
$block_name = implode('/', $args);
$parms = $_GET;
unset($parms['q']);
$content['add_report']['form'] = drupal_get_form('forena_data_quick_report_form', $block_name);
$content['preview'] = forena_data_block_preview($block_name, $parms);
$content['preview']['#prefix'] = '<div id="forena-block-preview">';
$content['preview']['#suffix'] = '</div>';
$m_path = drupal_get_path('module', 'forena');
$content['#attached'] = array(
'js' => array(
"{$m_path}/forena.admin.js",
forena_library_file('dataTables'),
),
'css' => array(
"{$m_path}/forena.css",
),
);
return $content;
}