node_access_example.install
Same filename in other branches
Node access example module's install and uninstall code.
File
-
node_access_example/
node_access_example.install
View source
<?php
/**
* @file
* Node access example module's install and uninstall code.
*/
/**
* 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(
'description' => 'Example table for node_access_example module',
'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;
}
Functions
Title | Deprecated | Summary |
---|---|---|
node_access_example_install | Implementation of hook_install(). | |
node_access_example_schema | Implementation of hook_schema(). | |
node_access_example_uninstall | Implementation of hook_uninstall(). |