function support_pm_chartapi_uri in Support Ticketing System 7
Same name and namespace in other branches
- 6 support_pm/support_pm.module \support_pm_chartapi_uri()
In order to optimize displaying multiple charts on one page, we generate unique urls for the charts. TODO: Why does this break?
1 call to support_pm_chartapi_uri()
- support_pm_chartapi_render in support_pm/
support_pm.module
File
- support_pm/
support_pm.module, line 1013 - Support Project Management. @author Jeremy Andrews <jeremy@tag1consulting.com> @package Support
Code
function support_pm_chartapi_uri() {
return 'http://chart.apis.google.com/chart';
static $i = 0;
$uri = "http://{$i}.chart.apis.google.com/chart";
if (++$i > 9) {
$i = 0;
}
return $uri;
}