You are here

function weight_install in Weight 7

Same name and namespace in other branches
  1. 5 weight.install \weight_install()
  2. 6 weight.install \weight_install()

Implements hook_install().

File

./weight.install, line 12
This module uses the sticky column of the node table to add weighting to nodes.

Code

function weight_install() {

  // change taxonomy_index sticky field to type INT from TINYINT to hold larger weight values.
  $spec = array(
    'type' => 'int',
    'not null' => FALSE,
    'default' => 0,
  );
  db_change_field('taxonomy_index', 'sticky', 'sticky', $spec);
}