Same name and namespace in other branches
- 7.x-1.x colorbox.install \colorbox_update_7002() 1 comment
Implements hook_update_N().
Delete the unused colorbox_title_trim and colorbox_title_trim_length variables.
File
-
./
colorbox.install, line 146
Code
function colorbox_update_7002() {
$ret = array();
$colorbox_title_trim = variable_get('colorbox_title_trim', NULL);
$colorbox_title_trim_length = variable_get('colorbox_title_trim_length', NULL);
if (!empty($colorbox_title_trim)) {
variable_set('colorbox_caption_trim', $colorbox_title_trim);
}
if (!empty($colorbox_title_trim_length)) {
variable_set('colorbox_caption_trim_length', $colorbox_title_trim_length);
}
variable_del('colorbox_title_trim');
variable_del('colorbox_title_trim_length');
return $ret;
}