function fontyourface_schema in @font-your-face 6
Same name and namespace in other branches
- 6.2 fontyourface.install \fontyourface_schema()
- 7.2 fontyourface.install \fontyourface_schema()
- 7 fontyourface.install \fontyourface_schema()
Implements hook_schema.
File
- ./
fontyourface.install, line 29 - Adds fontyourface table for tracking used fonts.
Code
function fontyourface_schema() {
$schema = array();
$schema['fontyourface'] = array(
'description' => 'Stores font information.',
'fields' => array(
'fid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary Key: Unique font ID.',
),
'provider' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The module providing the font.',
),
'group_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The group containing the font.',
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The font name.',
),
'css' => array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
'description' => 'CSS selector for applying the font.',
),
),
'primary key' => array(
'fid',
),
);
return $schema;
}