function vppn_schema in View Permission Per Node 7
Implements hook_schema().
File
- ./
vppn.install, line 11 - Installation for the VPPN module.
Code
function vppn_schema() {
// The main VPPN table.
$schema['vppn'] = array(
'description' => 'Role view permissions per node.',
'fields' => array(
'nid' => array(
'description' => 'The primary identifier for a node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'rid' => array(
'description' => 'The role id that has the view permission.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'nid',
'rid',
),
);
// Return the database table schema definition.
return $schema;
}