You are here

function statspro_path_aggregator_list in Statistics Pro 6.2

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

File

./statspro_path_aggregated.inc, line 13

Code

function statspro_path_aggregator_list() {
  if (!statspro_path_aggregated_mandatory()) {
    return "\n<p>" . t('Dependencies not met.') . "</p>\n";
  }

  // No path aggregators defined.
  $row_count = db_result(db_query('SELECT COUNT(spaid) FROM {statspro_path_aggregator}'));
  if ($row_count == 0) {
    $output = "\n<p class='statspro_warning'>" . t('No path aggregators defined.') . "</p>\n";
  }
  else {
    $output = drupal_get_form('statspro_path_aggregator_list_form');
  }
  return $output;
}