function contentoptimizer_schema in Content Optimizer 8
Same name and namespace in other branches
- 6.2 contentoptimizer.install \contentoptimizer_schema()
- 6 contentoptimizer.install \contentoptimizer_schema()
- 7.2 contentoptimizer.install \contentoptimizer_schema()
Implementation of hook_schema
File
- ./
contentoptimizer.install, line 18 - Install include file. Implements database schema.
Code
function contentoptimizer_schema() {
$schema['contentoptimizer'] = array(
'description' => t('Creates database table for content optimizer keywords.'),
'fields' => array(
'aid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('The content analysis id.'),
),
//aid
'keyword' => array(
'type' => 'varchar',
'length' => '128',
'not null' => TRUE,
'default' => '',
'description' => t('The targeted keyword phrase for the node.'),
),
),
'primary key' => array(
'aid',
),
);
return $schema;
}