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

Diff of /contributions/modules/valuelist/valuelist.module

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

revision 1.4, Thu Feb 28 14:11:02 2008 UTC revision 1.5, Wed Jul 23 19:55:46 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  //$Id: valuelist.module,v 1.3 2008/02/27 15:58:10 usonian Exp $  //$Id: valuelist.module,v 1.4 2008/02/28 14:11:02 usonian Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 220  function valuelist_get_array($vl_name) { Line 220  function valuelist_get_array($vl_name) {
220    foreach ($lines as $line) {    foreach ($lines as $line) {
221      if (strpos($line, '|')) {      if (strpos($line, '|')) {
222        $parts = explode('|', $line);        $parts = explode('|', $line);
223        $value = $parts[0];        $value = trim($parts[0]);
224        $label = $parts[1];        $label = trim($parts[1]);
225      }      }
226      else{      else{
227        $value = $line;        $value = trim($line);
228        $label = $line;        $label = trim($line);
229      }      }
230      $options[$value] = t($label);      $options[$value] = t($label);
231    }    }

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

  ViewVC Help
Powered by ViewVC 1.1.2