You are here

function node_revision_delete_install in Node Revision Delete 7

Same name and namespace in other branches
  1. 7.3 node_revision_delete.install \node_revision_delete_install()
  2. 7.2 node_revision_delete.install \node_revision_delete_install()

Implements hook_install().

File

./node_revision_delete.install, line 10
Install, update and uninstall functions for the Node Revision module.

Code

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);
}