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

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

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

revision 1.1.2.24, Thu Jan 1 09:52:17 2009 UTC revision 1.1.2.25, Thu Jan 1 09:54:43 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: node_import.inc,v 1.1.2.23 2009/01/01 09:49:31 robrechtj Exp $  // $Id: node_import.inc,v 1.1.2.24 2009/01/01 09:52:17 robrechtj Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1036  function node_import_check_user(&$value, Line 1036  function node_import_check_user(&$value,
1036   * Uses: nothing.   * Uses: nothing.
1037   */   */
1038  function node_import_check_node(&$value, $field, $options, $preview) {  function node_import_check_node(&$value, $field, $options, $preview) {
1039    if (is_numeric($value) && intval($value) > 0) {    if (($nid = node_import_get_object('node', $value)) !== NULL) {
1040        return $nid;
1041      }
1042      //TODO: lookup by title
1043      else if (is_numeric($value) && intval($value) > 0) {
1044        node_import_set_object('node', $value, $value);
1045      return TRUE;      return TRUE;
1046    }    }
1047    

Legend:
Removed from v.1.1.2.24  
changed lines
  Added in v.1.1.2.25

  ViewVC Help
Powered by ViewVC 1.1.2