You are here

function block_tracker_install in Util 7

Same name and namespace in other branches
  1. 6.3 contribs/block_tracker/block_tracker.install \block_tracker_install()

Implements hook_install(); Add a last used timestamp to the blocks table.

File

contribs/block_tracker/block_tracker.install, line 12
Install code for Block Tracker add-on to Util.

Code

function block_tracker_install() {
  db_add_field('block', 'lastused', array(
    'description' => 'The Unix timestamp when the node was last used.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
}