You are here

sbp_test.install in Search by Page 6

Same filename and directory in other branches
  1. 7 tests/sbp_test.install

Install file for Search by Page testing module

File

tests/sbp_test.install
View source
<?php

/**
 * @file
 * Install file for Search by Page testing module
 * @ingroup search_by_page
 */

/**
 * Implementation of hook_install().
 *
 * Code taken form the Node Access Example module on drupal.org.
 */
function sbp_test_install() {
  drupal_install_schema('sbp_test');
}

/**
 * Implementation of hook_uninstall().
 *
 * Code taken form the Node Access Example module on drupal.org.
 */
function sbp_test_uninstall() {
  drupal_uninstall_schema('sbp_test');
}

/**
 * Implementation of hook_schema().
 *
 * Code taken form the Node Access Example module on drupal.org.
 */
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;
}

Related topics

Functions

Namesort descending Description
sbp_test_install Implementation of hook_install().
sbp_test_schema Implementation of hook_schema().
sbp_test_uninstall Implementation of hook_uninstall().