function node_revision_delete_uninstall in Node Revision Delete 7.2
Same name and namespace in other branches
- 7.3 node_revision_delete.install \node_revision_delete_uninstall()
- 7 node_revision_delete.install \node_revision_delete_uninstall()
Implements hook_uninstall().
File
- ./
node_revision_delete.install, line 19 - Install, update and uninstall functions for the Node Revision module.
Code
function node_revision_delete_uninstall() {
variable_del('node_revision_delete_time');
variable_del('node_revision_delete_last_execute');
variable_del('node_revision_delete_cron');
// Searching the content type machine name.
$results = db_query("SELECT SUBSTR(name, 28) as name\n FROM {variable}\n WHERE name LIKE 'node_revision_delete_track_%'");
// Deleting the variables.
foreach ($results as $result) {
variable_del('node_revision_delete_track_' . $result->name);
variable_del('node_revision_delete_number_' . $result->name);
}
}