You are here

function system_charts_display in Google Chart Tools: Image Charts 7

Same name and namespace in other branches
  1. 5 contrib/system_charts/system_charts.module \system_charts_display()
  2. 6 contrib/system_charts/system_charts.module \system_charts_display()

Display charts and content in context to the current page.

Return value

string markup, chart images.

1 call to system_charts_display()
system_charts in system_charts/system_charts.module
Page callback.

File

system_charts/system_charts.module, line 101
Provides primary Drupal hook implementations.

Code

function system_charts_display($page = 'nodes') {
  $output = '';
  switch ($page) {
    case 'users':
      $output .= system_charts_build('users_per_role');
      $output .= system_charts_build('user_status');
      break;
    case 'nodes':
      $output .= system_charts_build('node_counts');
      $output .= system_charts_build('node_counts_published');
      $output .= system_charts_build('node_counts_unpublished');
      $output .= system_charts_build('node_activity');
      break;
    case 'watchdog':
      $output .= system_charts_build('watchdog_counts');
      $output .= system_charts_build('watchdog_severity');
      break;
  }
  return $output;
}