and new_revisions_ // should be used in array, like 'revision_moderation' below? variable_del('new_revisions_'. $type->type); // Remove 'revision_moderation' from all node_options_ variables $variable_name = 'node_options_'. $type->type; if ($node_options = variable_get($variable_name, NULL)) { $node_options = array_diff($node_options, array('revision_moderation')); variable_set($variable_name, $node_options); } } }