You are here

function rabbit_hole_schema_alter in Rabbit Hole 7

Same name and namespace in other branches
  1. 6 rabbit_hole.install \rabbit_hole_schema_alter()
  2. 7.2 rabbit_hole.module \rabbit_hole_schema_alter()

Implements hook_schema_alter().

2 calls to rabbit_hole_schema_alter()
rabbit_hole_install in ./rabbit_hole.install
Implements hook_install().
rabbit_hole_uninstall in ./rabbit_hole.install
Implements hook_uninstall().

File

./rabbit_hole.install, line 11
Install, update and uninstall functions for Rabbit Hole.

Code

function rabbit_hole_schema_alter(&$schema) {
  $schema['node']['fields']['rabbit_hole_action'] = array(
    'description' => 'Specifies which action that Rabbit Hole should take.',
    'type' => 'int',
    'default' => NULL,
  );
  $schema['node']['fields']['rabbit_hole_redirect'] = array(
    'description' => 'The path to where the user should get redirected to.',
    'type' => 'varchar',
    'default' => NULL,
    'length' => 255,
  );
  $schema['node']['fields']['rabbit_hole_redirect_response'] = array(
    'description' => 'Specifies the HTTP response code that should be used when perform a redirect.',
    'type' => 'int',
    'default' => NULL,
  );
}