HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
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');
}