function photos_update_6 in Album Photos 6.2
File
- ./
photos.install, line 309
Code
function photos_update_6() {
$ret = array();
$t = explode('x', variable_get('photos_t_w', '100x100'));
$t1 = explode('x', variable_get('photos_t_ww', '640x480'));
variable_set('photos_title_0', variable_get('photos_t_w', '100x100'));
variable_set('photos_title_1', variable_get('photos_t_ww', '640x480'));
$size = array(
array(
'name' => variable_get('photos_t_w', '100x100'),
'w' => $t[0],
'h' => $t[1],
'r' => variable_get('photos_t_s', 'crop'),
),
array(
'name' => variable_get('photos_t_ww', '640x480'),
'w' => $t1[0],
'h' => $t1[1],
'r' => variable_get('photos_t_ss', 'scale'),
),
);
$types = node_get_types();
foreach ($types as $type) {
variable_set('photos_node_' . $type->type, variable_get('photos_' . $type->type, 0));
variable_get('photos_share_' . $type->type, variable_get('photos_quote_' . $type->type, 0));
variable_del('photos_' . $type->type);
variable_del('photos_quote_' . $type->type);
}
variable_set('photos_size', $size);
module_exists('dfgallery') ? variable_set('photos_flash', 0) : NULL;
extension_loaded('exif') ? variable_set('photos_exif', 0) : NULL;
version_compare(PHP_VERSION, '5') >= 0 ? variable_set('photos_upzip', 0) : NULL;
variable_set('photos_print_sizes', variable_get('photos_open_orig', 0));
variable_del('photos_open_orig');
variable_del('photos_privacy_default');
variable_del('photos_pnum');
variable_del('photos_t_w');
variable_del('photos_t_s');
variable_del('photos_t_ww');
variable_del('photos_t_ss');
variable_del('photos_block_num_2_1');
return $ret;
}