You are here

function nopremium_schema_alter in Node Option Premium 6

Same name and namespace in other branches
  1. 7 nopremium.install \nopremium_schema_alter()

Implementation of hook_schema_alter().

File

./nopremium.install, line 14
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_schema_alter(&$schema) {
  $schema['node']['fields']['premium'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  $schema['node']['indexes']['node_premium_status'] = array(
    'premium',
    'status',
  );
}