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;
}

Вход в систему