backgroundfield.install in BackgroundField 7
Same filename and directory in other branches
File
backgroundfield.installView source
<?php
/**
* Implementation of hook_field_schema()
*/
function backgroundfield_field_schema($field) {
if ($field['type'] == 'backgroundfield') {
return array(
'columns' => array(
'fid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'foreign keys' => array(
'file_managed' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
);
}
// if backgroundfield
}
// backgroundfield_field_schema()
Functions
Name![]() |
Description |
---|---|
backgroundfield_field_schema | Implementation of hook_field_schema() |