function customfilter_update_6112 in Custom filter 7.2
Same name and namespace in other branches
- 6 customfilter.install \customfilter_update_6112()
- 7 customfilter.install \customfilter_update_6112()
Implements hook_update_N().
File
- ./
customfilter.install, line 439 - Installation file for Custom filter.
Code
function customfilter_update_6112() {
$ret = array();
if (db_field_exists('customfilter_filter', 'longtips')) {
db_change_field('customfilter_filter', 'longtips', 'longtip', array(
'type' => 'text',
));
}
if (db_field_exists('customfilter_filter', 'shorttips')) {
db_change_field('customfilter_filter', 'shorttips', 'shorttip', array(
'type' => 'text',
));
}
// hook_update_N() no longer returns a $ret array. Instead, return
// nothing or a translated string indicating the update ran successfully.
// See http://drupal.org/node/224333#update_sql.
return t('TODO Add a descriptive string here to show in the UI.');
}