function system_update_119 in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.install \system_update_119()
File
- database/
updates.inc, line 256
Code
function system_update_119() {
$ret = array();
foreach (node_get_types() as $type => $name) {
$node_options = array();
if (variable_get('node_status_' . $type, 1)) {
$node_options[] = 'status';
}
if (variable_get('node_moderate_' . $type, 0)) {
$node_options[] = 'moderate';
}
if (variable_get('node_promote_' . $type, 1)) {
$node_options[] = 'promote';
}
if (variable_get('node_sticky_' . $type, 0)) {
$node_options[] = 'sticky';
}
if (variable_get('node_revision_' . $type, 0)) {
$node_options[] = 'revision';
}
variable_set('node_options_' . $type, $node_options);
variable_del('node_status_' . $type);
variable_del('node_moderate_' . $type);
variable_del('node_promote_' . $type);
variable_del('node_sticky_' . $type);
variable_del('node_revision_' . $type);
}
return $ret;
}