function customfilter_update_6114 in Custom filter 7
Same name and namespace in other branches
- 6 customfilter.install \customfilter_update_6114()
- 7.2 customfilter.install \customfilter_update_6114()
Implements hook_update_N().
File
- ./
customfilter.install, line 467 - Installation file for Custom filter.
Code
function customfilter_update_6114() {
$ret = array();
if (!db_field_exists('customfilter_filter', 'type')) {
db_add_field('customfilter_filter', 'type', array(
'description' => 'The machine-readable name of this filter.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
));
}
// 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.');
}