You are here

function forena_report_ajax_callback in Forena Reports 7.5

Parameters

$report_name:

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

File

./forena.module, line 1002

Code

function forena_report_ajax_callback($report_name) {
  $content = forena_report("{$report_name}");
  $title = Frx::Editor()->frxReport->title;
  if (is_callable('ctools_include')) {
    ctools_include('modal');
    ctools_modal_render($title, $content['content']['#markup']);
  }
  else {
    drupal_set_title($title);
    return $content;
  }
}