contentoptimizer.install in Content Optimizer 6
File
contentoptimizer.install
View source
<?php
function contentoptimizer_install() {
drupal_install_schema('contentoptimizer');
drupal_set_message(t('Content Optimizer has been installed.'));
}
function contentoptimizer_uninstall() {
drupal_uninstall_schema('contentoptimizer');
drupal_set_message(t('Content Optimizer has been uninstalled.'));
}
function contentoptimizer_schema() {
$schema['contentoptimizer_keyword'] = array(
'description' => t('Creates database table for contentoptimizer keywords.'),
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('The {node}.nid to which the contentoptimizer keyword.'),
),
'keyword' => array(
'type' => 'varchar',
'length' => '128',
'not null' => TRUE,
'default' => '',
'description' => t('The targeted keyword phrase for the node.'),
),
'modifiers' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
'description' => t('Modifiers for targeted keyword phrase.'),
),
),
);
return $schema;
}