eck_permissions.install in Entity Construction Kit (ECK) 7.3
ECK Permissions Install.
File
modules/eck_permissions/eck_permissions.installView source
<?php
/**
* @file
* ECK Permissions Install.
*/
/**
* Implements hook_schema().
*/
function eck_permissions_schema() {
// Schema for the eck permissions table.
$schema['eck_permissions'] = array(
'description' => "The base table for entity type information",
'fields' => array(
'id' => array(
'description' => "The primary identifier for a bundle",
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'type' => array(
'description' => "Is this a user specific permission or a role permission",
'type' => 'varchar',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'oid' => array(
'description' => "The id of the object (role or user) that this permission is relevant to.",
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'permission' => array(
'description' => "the permission string",
'type' => 'varchar',
'length' => 256,
'not null' => TRUE,
),
),
'primary key' => array(
'id',
),
'indexes' => array(),
);
return $schema;
}
Functions
Name![]() |
Description |
---|---|
eck_permissions_schema | Implements hook_schema(). |