/[drupal]/contributions/modules/node_import/import_cck.inc
ViewVC logotype

Diff of /contributions/modules/node_import/import_cck.inc

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

revision 1.4, Fri Apr 14 22:08:13 2006 UTC revision 1.5, Sun Apr 23 22:29:58 2006 UTC
# Line 51  function content_node_import_prepare(&$n Line 51  function content_node_import_prepare(&$n
51    
52      } else {//default node types: add value to array w/ key 'value'      } else {//default node types: add value to array w/ key 'value'
53        $thisval = $node->$field['field_name'];        $thisval = $node->$field['field_name'];
54        $node->$field['field_name'] = array('value' => $thisval);        if ($field['widget']['type'] == 'weburl') {
55            $node->$field['field_name'] = array('value' => $thisval);
56          } else {
57            $node->$field['field_name'] = array(0 => array('value' => $thisval));
58          }
59      }      }
60    }    }
61    return;    return;

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

  ViewVC Help
Powered by ViewVC 1.1.2