File: /home/iestorre/www2/modules/node_menu/node_menu.install
<?php
// $Id: node_menu.install,v 1.3 2009/02/28 04:33:44 develCuy Exp $
/**
* Implementation of hook_install().
*/
function node_menu_install() {
variable_set('node_menu_schema_version', 6000);
drupal_install_schema('node_menu');
}
/**
* Implementation of hook_schema().
*/
function node_menu_schema() {
$schema['node_menu'] = array(
'fields' => array(
'nm_id' => array('type' => 'serial', 'length' => 10, 'not null' => TRUE),
'nm_node_id' => array('type' => 'int', 'length' => 10, 'not null' => TRUE, 'default' => 0),
'nm_menu_id' => array('type' => 'int', 'length' => 10, 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('nm_id'),
'unique keys' => array(
'idx_node_menu' => array('nm_node_id', 'nm_menu_id'),
),
'indexes' => array(
'idx_node_id' => array('nm_node_id'),
'idx_menu_id' => array('nm_menu_id'),
),
);
return $schema;
}
/**
* Implementation of hook_uninstall().
*/
function node_menu_uninstall() {
variable_del('node_menu_schema_version');
drupal_uninstall_schema('node_menu');
}