function node_access_example_schema in Examples for Developers 6
Same name and namespace in other branches
- 7 node_access_example/node_access_example.install \node_access_example_schema()
Implementation of hook_schema().
File
- node_access_example/
node_access_example.install, line 25 - Node access example module's install and uninstall code.
Code
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;
}