You are here

function rabbit_hole_schema_fields in Rabbit Hole 7.2

Helper function that defines the Rabbit Hole database fields.

Return value

array An array with the field specifications, keyed by the field name.

4 calls to rabbit_hole_schema_fields()
rabbit_hole_modules_enabled in ./rabbit_hole.module
Implements hook_modules_enabled().
rabbit_hole_modules_uninstalled in ./rabbit_hole.module
Implements hook_modules_uninstalled().
rabbit_hole_schema_alter in ./rabbit_hole.module
Implements hook_schema_alter().
rabbit_hole_update_7002 in ./rabbit_hole.install
Change the rh_redirect field from varchar to text.

File

./rabbit_hole.module, line 729
Main module file for Rabbit Hole.

Code

function rabbit_hole_schema_fields() {
  $fields = array(
    'rh_action' => array(
      'description' => 'Specifies which action that Rabbit Hole should take.',
      'type' => 'int',
      'default' => NULL,
    ),
    'rh_redirect' => array(
      'description' => 'The path to where the user should get redirected to.',
      'type' => 'text',
      'default' => NULL,
      'size' => 'big',
    ),
    'rh_redirect_response' => array(
      'description' => 'Specifies the HTTP response code that should be used when perform a redirect.',
      'type' => 'int',
      'default' => NULL,
    ),
  );
  return $fields;
}