You are here

function sbp_test_schema in Search by Page 7

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

Implements hook_schema().

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

File

tests/sbp_test.install, line 14
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;
}