function quotes_update_6106 in Quotes 6
Implementation of hook_update_N(). Adding random frequency to quotes_blocks table.
File
- ./
quotes.install, line 489 - Handles installation and updates for the quotes module.
Code
function quotes_update_6106() {
$ret = array();
if (db_column_exists('quotes_blocks', 'rand_freq')) {
$ret[] = array(
'success' => TRUE,
'query' => t('The rand_freq column already exists.'),
);
}
else {
db_add_field($ret, 'quotes_blocks', 'rand_freq', array(
'description' => t('Display frequency for random blocks.'),
'type' => 'int',
'not null' => TRUE,
'default' => 100,
));
}
return $ret;
}