function system_charts_display in Google Chart Tools: Image Charts 5
Same name and namespace in other branches
- 6 contrib/system_charts/system_charts.module \system_charts_display()
- 7 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 contrib/
system_charts/ system_charts.module - Page callback.
File
- contrib/
system_charts/ system_charts.module, line 82 - Core drupal system charting. Developed by Tj Holowaychuk
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;
}