function quotes_update_6101 in Quotes 6
Implementation of hook_update_N().
File
- ./
quotes.install, line 253 - Handles installation and updates for the quotes module.
Code
function quotes_update_6101() {
// This update adds a block count column.
$ret = array();
// Skip this if upgrading from 5.x later than this addition.
if (!db_column_exists('quotes_blocks', 'count')) {
$spec1 = array(
'description' => t('Number of quotes in the block.'),
'type' => 'int',
'not null' => FALSE,
'default' => 1,
);
$spec2 = array(
'description' => t('Show titles.'),
'type' => 'int',
'not null' => FALSE,
'default' => 0,
);
db_add_field($ret, 'quotes_blocks', 'count', $spec1);
db_add_field($ret, 'quotes_blocks', 'show_titles', $spec2);
}
return $ret;
}