hosting_site_data.install in Hosting 7.4
Same filename and directory in other branches
Install, update and uninstall functions for the hosting_site_data module.
File
example/site_data/hosting_site_data.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the hosting_site_data module.
*/
/**
* Implements hook_schema().
*/
function hosting_site_data_schema() {
$schema['hosting_site_data'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'site_data' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
),
'indexes' => array(
'vid' => array(
'vid',
),
),
);
return $schema;
}
Functions
Name![]() |
Description |
---|---|
hosting_site_data_schema | Implements hook_schema(). |