node_access_example_schema
developer/examples/node_access_example.install, строка 20
- Версии
- 6
node_access_example_schema()
Реализация hook_schema()
.
Код
<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии