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

Diff of /contributions/modules/flexiconvert/flexiconvert.module

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

revision 1.12, Thu Jun 4 17:14:40 2009 UTC revision 1.13, Thu Jun 4 17:15:26 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: flexiconvert.module,v 1.11 2009/06/04 17:13:38 anarcat Exp $  // $Id: flexiconvert.module,v 1.12 2009/06/04 17:14:40 anarcat Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 333  function flexiconvert_form_submit($form_ Line 333  function flexiconvert_form_submit($form_
333        $type_obj->modified = FALSE;        $type_obj->modified = FALSE;
334        $type_obj->locked = FALSE;        $type_obj->locked = FALSE;
335    
336        drupal_set_message(t("creating new CCK type %name", array('%name' => $ftype['title'])));        drupal_set_message(t("processing flexinode type %name", array('%name' => $ftype['title'])));
337        node_type_save($type_obj);        node_type_save($type_obj);
338      }      }
339    } // End type conversion loop...    } // End type conversion loop...
# Line 357  function flexiconvert_form_submit($form_ Line 357  function flexiconvert_form_submit($form_
357            break;            break;
358          }          }
359    
         drupal_set_message(t("found field %name (%type)", array('%name' => $field_name, '%type' => $fd['field_type'])));  
   
360          $cck_type = _flexiconvert_field_to_cck($fd['field_type']);          $cck_type = _flexiconvert_field_to_cck($fd['field_type']);
361    
362            drupal_set_message(t("converting field %name from flexinode type %type to CCK type %ccktype", array('%name' => $field_name, '%type' => $fd['field_type'], '%ccktype' => $cck_type)));
363    
364          db_query("INSERT INTO {node_field} (field_name, type, global_settings, required, multiple, db_storage) VALUES ('%s', '%s', '%s', %d, %d, %d)",          db_query("INSERT INTO {node_field} (field_name, type, global_settings, required, multiple, db_storage) VALUES ('%s', '%s', '%s', %d, %d, %d)",
365                   $field_name,                   $field_name,
366                   $cck_type,                   $cck_type,

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.2