You are here

function image_fupload_update_6110 in Image FUpload 6.3

File

./image_fupload.install, line 144

Code

function image_fupload_update_6110() {
  $ret = array();

  // Create default profile if nothing exists (preventing 403 errors)
  $image_node_types = variable_get('image_node_types', array());
  if (empty($image_node_types['image'])) {
    $image_node_types['image'] = array(
      'title' => 'Image',
      'fieldname' => 'images',
      'image_selection' => 'preview',
      // best choice I think; can be changed in admin menu
      'imagecache_preset' => '',
    );
    variable_set('image_node_types', $image_node_types);
  }
  return $ret;
}