node_revision_delete.install in Node Revision Delete 7
Same filename and directory in other branches
Install, update and uninstall functions for the Node Revision module.
File
node_revision_delete.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the Node Revision module.
*/
/**
* Implements hook_install().
*/
function node_revision_delete_install() {
// Ensure the blog node type is available.
node_types_rebuild();
$types = node_type_get_types();
variable_set('node_revision_delete_number', 5);
variable_set('node_revision_delete_content_type', 0);
variable_set('node_revision_delete_time', 0);
variable_set('node_revision_delete_last_execute', 0);
}
/**
* Implements hook_uninstall().
*/
function node_revision_delete_uninstall() {
variable_del('node_revision_delete_number');
variable_del('node_revision_delete_content_type');
variable_del('node_revision_delete_time');
variable_del('node_revision_delete_last_execute');
}
Functions
Name | Description |
---|---|
node_revision_delete_install | Implements hook_install(). |
node_revision_delete_uninstall | Implements hook_uninstall(). |