dirname(__FILE__) . '/charts_openflash.class.inc', //must be full path 'clazz' => 'ChartsOpenFlash', //implementation class' name 'name' => 'open-flash', //name used when invoking through a factroy method ); return (object) $provider; } function charts_openflash_menu() { $items = array(); $items['charts_openflash/data'] = array( 'page callback' => 'charts_openflash_data', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); return $items; } /** * @param $cid * cache_id from which cache to retrieve the data */ function charts_openflash_data($cid=null) { $cache = cache_get($cid); if (!$cache) { drupal_not_found(); exit(); } $canvas = $cache->data; $chart = chart_graphs_get_graph('open-flash'); $chart->get_data_from_cache($cid); /*$chart = <<