You are here

function customfilter_update_6105 in Custom filter 7

Same name and namespace in other branches
  1. 7.2 customfilter.install \customfilter_update_6105()

Implements hook_update_N().

File

./customfilter.install, line 313
Installation file for Custom filter.

Code

function customfilter_update_6105() {
  $ret = array();
  db_add_field('customfilter_rules', 'enabled', array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));

  // 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.');
}