function lightbox2_update_1 in Lightbox2 5.2
Same name and namespace in other branches
- 8 lightbox2.install \lightbox2_update_1()
- 6 lightbox2.install \lightbox2_update_1()
- 7.2 lightbox2.install \lightbox2_update_1()
- 7 lightbox2.install \lightbox2_update_1()
One of the variables was renamed from 'lightbox2_plus' to 'lightbox2_lite'.
File
- ./
lightbox2.install, line 99 - Installation functions for Lightbox2.
Code
function lightbox2_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql('UPDATE {variable} SET name="lightbox2_lite"
WHERE name="lightbox2_plus";');
break;
case 'pgsql':
$ret[] = update_sql('UPDATE {variable} SET name="lightbox2_lite"
WHERE name="lightbox2_plus";');
break;
}
return $ret;
}