You are here

function colorbox_update_7002 in Colorbox 7

Same name and namespace in other branches
  1. 7.2 colorbox.install \colorbox_update_7002()

Delete the unused colorbox_title_trim and colorbox_title_trim_length variables.

File

./colorbox.install, line 60
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;
}