You are here

function block_revisions_install in Block Revisions 7

Same name and namespace in other branches
  1. 6 block_revisions.install \block_revisions_install()

Implements hook_install().

File

./block_revisions.install, line 101
Installation routines for the Block Revisions module.

Code

function block_revisions_install() {
  db_add_field('block_custom', 'uid', array(
    'description' => 'The {users}.uid of the user that created or updated this block.',
    'type' => 'int',
    'not null' => FALSE,
  ));
  db_add_field('block_custom', 'timestamp', array(
    'description' => 'A Unix timestamp indicating when this block was last updated.',
    'type' => 'int',
    'not null' => FALSE,
  ));
  variable_set('block_revisions_revision_default', BLOCK_REVISION_DEFAULT);
}