acsf_variables.install in Acquia Cloud Site Factory Connector 8.2
Same filename and directory in other branches
Install related functions.
File
acsf_variables/acsf_variables.installView source
<?php
/**
* @file
* Install related functions.
*/
/**
* Implements hook_schema().
*/
function acsf_variables_schema() {
$schema = [];
$schema['acsf_variables'] = [
'description' => 'A centralized storage mechanism for all ACSF sensitive variables that can be easily scrubbed.',
'fields' => [
'name' => [
'description' => 'The name of the variable.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
],
'group_name' => [
'description' => 'The group of the variable.',
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
],
'value' => [
'description' => 'The value of the variable.',
'type' => 'blob',
'not null' => TRUE,
'size' => 'big',
],
],
'primary key' => [
'name',
],
'indexes' => [
'group_name' => [
'group_name',
],
],
];
return $schema;
}
Functions
Name | Description |
---|---|
acsf_variables_schema | Implements hook_schema(). |