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

Diff of /contributions/modules/fieldreference/fieldreference.module

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

revision 1.2.2.4, Tue Aug 5 10:31:25 2008 UTC revision 1.2.2.5, Sun Sep 7 15:32:39 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fieldreference.module,v 1.2.2.3 2008/06/20 13:36:50 guardian Exp $  // $Id: fieldreference.module,v 1.2.2.4 2008/08/05 10:31:25 guardian Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 220  function fieldreference_widget($op, &$no Line 220  function fieldreference_widget($op, &$no
220        case 'form':        case 'form':
221          $form = array();          $form = array();
222    
223          $options = _fieldreference_potential_references($field);          $values = _fieldreference_potential_references($field);
224          foreach ($options as $key => $value) {          $options = array();
225            $options[$key] = _fieldreference_item($field, $value, FALSE);          foreach ($values as $key => $value) {
226              $options[$value->title][$key] = _fieldreference_item($field, $value, FALSE);
227          }          }
228          if (!$field['required']) {          if (!$field['required']) {
229            $options = array(0 => t('<none>')) + $options;            $options = array(0 => t('<none>')) + $options;

Legend:
Removed from v.1.2.2.4  
changed lines
  Added in v.1.2.2.5

  ViewVC Help
Powered by ViewVC 1.1.2