You are here

function sbp_test_schema in Search by Page 6

Same name and namespace in other branches
  1. 7 tests/sbp_test.install \sbp_test_schema()

Implementation of hook_schema().

Code taken form the Node Access Example module on drupal.org.

File

tests/sbp_test.install, line 32
Install file for Search by Page testing module

Code

function sbp_test_schema() {
  $schema['sbp_test_access'] = 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;
}