You are here

function pages_restriction_schema in Pages Restriction Access 7

Implements hook_schema().

File

./pages_restriction.install, line 11
Install hooks for the Pages Restriction module.

Code

function pages_restriction_schema() {
  $schema['cache_pages_restriction'] = array(
    'description' => 'Table to store data related to the Pages Restriction to do less processing on every page load.',
    'fields' => array(
      'id_session' => array(
        'description' => 'Primary Key: Unique Cache identifier for my table.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'next_page_path' => array(
        'description' => 'Next URL Path rule to validate.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'restrict_rules' => array(
        'description' => 'Save rules in database',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'id_session',
    ),
  );
  return $schema;
}