function node_revision_delete_update_7301 in Node Revision Delete 7.3
Update node_revision_delete_time from words to seconds.
File
- ./
node_revision_delete.install, line 124 - Install, update and uninstall functions for the Node Revision Delete module.
Code
function node_revision_delete_update_7301() {
// Including the helper file.
module_load_include('inc', 'node_revision_delete', 'node_revision_delete.helpers');
// Getting the new values.
$options_node_revision_delete_time = _node_revision_delete_word_to_time();
// Getting the old value.
$time = variable_get('node_revision_delete_time');
// Setting the new value.
variable_set('node_revision_delete_time', $options_node_revision_delete_time[$time]);
}