function weight_install in Weight 7
Same name and namespace in other branches
- 5 weight.install \weight_install()
- 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);
}