function charts_graphs_init in Charts and Graphs 6
Same name and namespace in other branches
- 6.2 charts_graphs.module \charts_graphs_init()
- 7.2 charts_graphs.module \charts_graphs_init()
- 7 charts_graphs.module \charts_graphs_init()
Implementation of hook_init().
File
- ./
charts_graphs.module, line 11
Code
function charts_graphs_init() {
require_once dirname(__FILE__) . '/charts_graphs.class.inc';
$api_providers = array();
$hook = 'chartgraph_provider';
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
$result = call_user_func_array($function, array());
if (!empty($result) && is_object($result)) {
$result->modulename = $module;
//save it as a provider;
chart_graphs_apis($result);
}
}
}