function beautytips_manager_update_7000 in BeautyTips 7.2
Update to add enabled field.
File
- ./
beautytips_manager.install, line 222 - Code related to the installation and uninstallation of custom beautytip and style administration.
Code
function beautytips_manager_update_7000() {
$ret = [];
// Make sure this field doesn't already exist.
if (db_field_exists('beautytips_custom_tips', 'enabled')) {
return $ret;
}
$spec = [
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'description' => t('Whether or not this tip is enabled'),
];
db_add_field('beautytips_custom_tips', 'enabled', $spec);
return $ret;
}