? .htaccess ? 613794_2.patch ? default_image_field-613794-26.patch ? default_image_field_613794.patch ? sites/default/files ? sites/default/private ? sites/default/settings.php Index: modules/image/image.module =================================================================== RCS file: /cvs/drupal/drupal/modules/image/image.module,v retrieving revision 1.25 diff -u -p -r1.25 image.module --- modules/image/image.module 5 Nov 2009 02:50:38 -0000 1.25 +++ modules/image/image.module 6 Nov 2009 02:06:16 -0000 @@ -346,7 +346,7 @@ function image_image_default_styles() { 'effects' => array( array( 'name' => 'image_scale', - 'data' => array('width' => 640, 'height' => 640, 'upscale' => 1), + 'data' => array('width' => 640, 'height' => 640, 'upscale' => 0), 'weight' => 0, ), ) Index: profiles/default/default.install =================================================================== RCS file: /cvs/drupal/drupal/profiles/default/default.install,v retrieving revision 1.16 diff -u -p -r1.16 default.install --- profiles/default/default.install 20 Oct 2009 17:33:43 -0000 1.16 +++ profiles/default/default.install 6 Nov 2009 02:06:17 -0000 @@ -208,8 +208,8 @@ function default_install() { 'description' => $description, 'machine_name' => 'tags', 'help' => $help, - 'weight' => 0, - ); + + ); taxonomy_vocabulary_save($vocabulary); $instance = array( 'field_name' => 'taxonomy_' . $vocabulary->machine_name, @@ -219,6 +219,95 @@ function default_install() { 'description' => $vocabulary->help, 'widget' => array( 'type' => 'taxonomy_autocomplete', + 'weight' => 4, + ), + ); + field_create_instance($instance); + + + // Create an image field named "Image", enabled for the 'article' content type. + // Many of the following values will be defaulted, they're included here as an illustrative examples. + // @see: http://api.drupal.org/api/function/field_create_field/7 + + $field = array( + 'field_name' => 'field_image', + 'type' => 'image', + 'cardinality' => 1, + 'translatable' => TRUE, + 'locked' => FALSE, + 'indexes' => array('fid' => array('fid')), + 'settings' => array( + 'uri_scheme' => 'public', + 'default_image' => FALSE, + ), + 'storage' => array( + 'type' => 'field_sql_storage', + 'settings' => array(), + ), + ); + field_create_field($field); + + + // Many of the following values will be defaulted, they're included here as an illustrative examples. + // @see: http://api.drupal.org/api/function/field_create_instance/7 + $instance = array( + 'field_name' => 'field_image', + 'object_type' => 'node', + 'label' => 'Image', + 'bundle' => 'article', + 'description' => 'Upload an image to go with this article.', + 'required' => FALSE, + + 'settings' => array( + 'file_directory' => 'field/image', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'alt_field' => TRUE, + 'title_field' => '', + ), + + 'widget' => array( + 'type' => 'image_image', + 'settings' => array( + 'progress_indicator' => 'throbber', + 'preview_image_style' => 'thumbnail', + ), + 'weight' => -1, + ), + + 'display' => array( + 'full' => array( + 'label' => 'hidden', + 'type' => 'image__large', + 'settings' => array(), + 'weight' => -1, + ), + 'teaser' => array( + 'label' => 'hidden', + 'type' => 'image_link_content__medium', + 'settings' => array(), + 'weight' => -1, + ), + 'rss' => array( + 'label' => 'hidden', + 'type' => 'image__large', + 'settings' => array(), + 'weight' => -1, + ), + 'search_index' => array( + 'label' => 'hidden', + 'type' => 'image__large', + 'settings' => array(), + 'weight' => -1, + ), + 'search_results' => array( + 'label' => 'hidden', + 'type' => 'image__large', + 'settings' => array(), + 'weight' => -1, + ), ), ); field_create_instance($instance);