/[drupal]/contributions/modules/graphstat/graphstat.module
ViewVC logotype

Diff of /contributions/modules/graphstat/graphstat.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.13, Wed Nov 14 22:29:56 2007 UTC revision 1.13.2.1, Sun Jan 25 14:32:28 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: graphstat.module,v 1.0 2007/06/18 17:04:10 profix898 Exp $  // $Id: graphstat.module,v 1.13 2007/11/14 22:29:56 profix898 Exp $
3    
4  require_once (drupal_get_path('module', 'graphstat') .'/graphstat_statistics.inc');  require_once (drupal_get_path('module', 'graphstat') .'/graphstat_statistics.inc');
5    
# Line 90  function graphstat_graphs($group = NULL) Line 90  function graphstat_graphs($group = NULL)
90        $output .= drupal_get_form('graphstat_filter_form', $options, $filter);        $output .= drupal_get_form('graphstat_filter_form', $options, $filter);
91      }      }
92      // Loop over the graphs for this graph group      // Loop over the graphs for this graph group
93      foreach($graphs as $key => $graph) {      foreach ($graphs as $key => $graph) {
94        if (is_array($graph) && isset($graph['data']) && is_array($graph['data'])) {        if (is_array($graph) && isset($graph['data']) && is_array($graph['data'])) {
95          $url = url('graphstat/'. strtr($group .'_'. $key, ' ', '_'), array('absolute' => TRUE));          $url = url('graphstat/'. strtr($group .'_'. $key, ' ', '_'), array('absolute' => TRUE));
96          $title = isset($graph['title']) ? $graph['title'] : drupal_ucfirst($group);          $title = isset($graph['title']) ? $graph['title'] : drupal_ucfirst($group);
# Line 244  function graphstat_render_graph($group, Line 244  function graphstat_render_graph($group,
244        exit();        exit();
245      }      }
246      // Include the PHPLOT library      // Include the PHPLOT library
247      require_once (drupal_get_path('module', 'graphstat') .'/phplot.php');      require_once(drupal_get_path('module', 'graphstat') .'/phplot.php');
248      // Create instance of PHPLOT and configure graph paramters      // Create instance of PHPLOT and configure graph paramters
249      $plot =& new PHPlot($width, $height);      $plot =& new PHPlot($width, $height);
250      $graph['type'] = isset($graph['type']) ? $graph['type'] : 'linepoints';      $graph['type'] = isset($graph['type']) ? $graph['type'] : 'linepoints';

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.13.2.1

  ViewVC Help
Powered by ViewVC 1.1.2