function colorbox_update_7002 in Colorbox 7.2
Same name and namespace in other branches
- 7 colorbox.install \colorbox_update_7002()
Implements hook_update_N().
Delete the unused colorbox_title_trim and colorbox_title_trim_length variables.
File
- ./
colorbox.install, line 90 - Install, update and uninstall functions for the colorbox module.
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;
}