2012-10-09 91 views
0

即時通訊在drupal和im上有新的問題,CCK字段有問題。CCK字段裏面有多個字段

我做了一個自定義的CCK場和安裝模式其是這樣的:

function usig_location_field_schema($field) { 
    return array(
    'columns' => array(
     'location_cck_usig' => array(
     'type' => 'varchar', 
     'length' => 255, 
     'not null' => FALSE, 
    ), 
     'lat_cck_usig' => array(
     'type' => 'varchar', 
     'length' => 255, 
     'not null' => FALSE, 
    ), 
     'lon_cck_usig' => array(
     'type' => 'varchar', 
     'length' => 255, 
     'not null' => FALSE, 
    ), 
    ), 
); 
} 

但是當我保存新的內容.. Drupal的崩潰與此日誌:

Fatal error: Cannot create references to/from string offsets nor overloaded objects in /includes/common.inc on line 6392

所以..我知道我做錯了什麼。我只是不知道該鉤用於保存領域。(它可能保存各個領域的一次?)

THX所有和SRY,我的英語

回答