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

Diff of /contributions/modules/tables/tables.module

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

revision 1.6, Thu Mar 16 05:37:16 2006 UTC revision 1.7, Fri Apr 7 05:27:36 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: tables.module,v 1.5 2006/03/07 05:22:54 webgeer Exp $ */  /* $Id$ */
3    
4  /**  /**
5   * @file   * @file
# Line 68  function _tables_prepare($intext) { Line 68  function _tables_prepare($intext) {
68      $num_rows=count($rows);      $num_rows=count($rows);
69      $num_cols=0;      $num_cols=0;
70      $cells = array();      $cells = array();
71    
72      while (isset($rows[$j])) {      while (isset($rows[$j])) {
73        $cells[$j]=explode('|', $rows[$j]);        $cells[$j]=explode('|', $rows[$j]);
74        $cells[$j]=array_map('trim', $cells[$j]);        $cells[$j]=array_map('trim', $cells[$j]);
75        if (count($cells[$j]>$num_cols)) {        if (count($cells[$j])>$num_cols) {
76          $num_cols=count($cells[$j]);          $num_cols=count($cells[$j]);
77        }        }
78        $j++;        $j++;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2