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