You are here

function signature_forum_update_7102 in Signatures for Forums 7

Fix regression when using with authentication modules.

File

./signature_forum.install, line 192
Installs, updates and uninstalls signature_forum module.

Code

function signature_forum_update_7102() {
  $table = drupal_get_schema('users', TRUE);

  // Change the field.
  try {
    db_change_field('users', 'signature', 'signature', $table['fields']['signature']);
  } catch (PDOException $e) {
    drupal_set_message($e
      ->getMessage(), 'error');
  }
}