$type_info) { if ($type_field = content_fields($field['field_name'], $node_type)) { $type_field['widget']['filefield_sources'] = array( 'imce' => 'imce', 'reference' => 'reference', 'remote' => 'remote', ); content_field_instance_update($type_field); } } } // FileField Sources needs to load after both ImageField and FileField. $ret[] = update_sql("UPDATE {system} SET weight = 5 WHERE type = 'module' AND name = 'filefield_sources'"); return $ret; }