function panels_update_5208 in Panels 5.2
Same name and namespace in other branches
- 6.3 panels.install \panels_update_5208()
File
- ./
panels.install, line 320
Code
function panels_update_5208() {
$ret = array();
$count = db_result(db_query("SELECT MAX(did) FROM {panels_display}"));
$ret[] = update_sql("DELETE FROM {sequences} WHERE name = '{panels_display}_did'");
$ret[] = update_sql("DELETE FROM {sequences} WHERE name = '{panels_display}_id'");
if ($count) {
$ret[] = update_sql("INSERT INTO {sequences} (name, id) VALUES ('{panels_display}_did',\n {$count})");
}
return $ret;
}