You are here

function modr8_schema_alter in modr8 7

Implements hook_schema_alter().

File

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

Code

function modr8_schema_alter(&$schema) {

  // Add moderate to existing node schema.
  $schema['node']['fields']['moderate'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'description' => 'A boolean indicating whether the node is "in moderation"',
  );
}