function block_tracker_install in Util 6.3
Same name and namespace in other branches
- 7 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() {
$ret = array();
db_add_field($ret, 'blocks', 'lastused', array(
'description' => 'The Unix timestamp when the node was last used.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
}