/[drupal]/contributions/modules/sna/routes.php
ViewVC logotype

Diff of /contributions/modules/sna/routes.php

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

revision 1.3, Tue Aug 22 11:50:18 2006 UTC revision 1.4, Mon Sep 4 10:13:07 2006 UTC
# Line 131  function average_step_separation($edges) Line 131  function average_step_separation($edges)
131   * @param array_ref $edges This array will be filled with the graph's adjacentcy list   * @param array_ref $edges This array will be filled with the graph's adjacentcy list
132   */   */
133  function get_graph(&$edges) {  function get_graph(&$edges) {
134    include(DATA_PATH);    if (variable_get('sna_realtime_network', FALSE) == TRUE) {
135        clear_cache();
136        $graph_source = variable_get('sna_data_source', GRAPH_SOURCE);
137        $build_edges = 'build_edges_from_' . $graph_source;
138        $build_edges($edges);
139        $edges = transform_edges($edges);
140      }
141      else {
142        include(DATA_PATH);
143      }
144    $limit = variable_get('sna_limit', 0);    $limit = variable_get('sna_limit', 0);
145    if ($limit > 0) {    if ($limit > 0) {
146      $edges = shrink($edges, $limit);      $edges = shrink($edges, $limit);
147    }    }
148      //print_r($edges);
149  }  }
150    
151  /**  /**

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2