You are here

function nodeorder_schema_alter in Node Order 7

Same name and namespace in other branches
  1. 6 nodeorder.install \nodeorder_schema_alter()

Implements hook_schema_alter().

Informs drupal_get_schema() of the field addition to 'taxonomy_index'.

File

./nodeorder.install, line 54
Nodeorder install file.

Code

function nodeorder_schema_alter(&$schema) {
  $schema['taxonomy_index']['fields']['weight'] = array(
    'type' => 'int',
    'signed' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'initial' => 0,
    'description' => t('A user-defined weight for each node in its respective category.'),
  );
}