You are here

function statspro_path_aggregated in Statistics Pro 6.2

Callback function for path aggregated page.

1 string reference to 'statspro_path_aggregated'
statspro_menu in ./statspro.module
Implementation of hook_menu().

File

./statspro_path_aggregated.inc, line 440

Code

function statspro_path_aggregated($period = '', $number_of_days = NULL) {
  $dependency_ok = statspro_path_aggregated_mandatory();
  if (!$dependency_ok) {
    return "\n<p>" . t('Dependencies not met.') . "</p>\n";
  }

  // add settings form
  $output = drupal_get_form('statspro_path_aggregated_report_form', $period, $number_of_days);
  $period_info = statspro_get_period_info($_SESSION['statspro_period_path_aggregated'], $_SESSION['statspro_custom_number_days_path_aggregated']);
  $output .= _statspro_path_aggregated_html_configurable_period_report($period_info['period'], $period_info['period_name']);
  return $output;
}