You are here

function modr8_install in modr8 7

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

Implements hook_install().

File

./modr8.install, line 94
Install, update and uninstall functions for the modr8 module. TODO: write upgrade from Drupal 6.

Code

function modr8_install() {
  db_add_field('node', 'moderate', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'description' => 'A boolean indicating whether the node is "in moderation"',
  ));
  db_add_index('node', 'node_moderate', array(
    'moderate',
  ));
}