node_access_example.install

<?php
// $Id: node_access_example.install,v 1.6 2007/10/05 16:44:50 drewish Exp $

/**
 * Implementation of hook_install().
 */
function node_access_example_install() {
  drupal_install_schema('node_access_example');
}

/**
 * Implementation of hook_uninstall().
 */
function node_access_example_uninstall() {
  drupal_uninstall_schema('node_access_example');
}

/**
 * Implementation of hook_schema().
 */
function node_access_example_schema() {
  $schema['node_access_example'] = array(
    'fields' => array(
      'nid'     => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
      'private' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
    ),
    'primary key' => array('nid'),
  );

  return $schema;
}
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.