function font_reference_field_schema in @font-your-face 7
Same name and namespace in other branches
- 7.2 modules/font_reference/font_reference.module \font_reference_field_schema()
Implements hook_field_schema();
File
- modules/
font_reference/ font_reference.module, line 28 - Defines a field type for referencing a font from a node.
Code
function font_reference_field_schema($field) {
return array(
'columns' => array(
'fid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'indexes' => array(
'fid' => array(
'fid',
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'fontyourface_font',
'columns' => array(
'fid' => 'fid',
),
),
),
);
}