You are here

function nodeorder_schema_alter in Node Order 6

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

Implementation of hook_schema_alter()

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

File

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

Code

function nodeorder_schema_alter(&$schema) {
  $schema['term_node']['fields']['weight_in_tid'] = 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.'),
  );
}