You are here

function signature_forum_user_presave in Signatures for Forums 7

Implements hook_user_presave().

File

./signature_forum.module, line 1057
Tweaks signatures in ways inspired by other traditional forum software:

Code

function signature_forum_user_presave(&$edit, $account, $category) {

  // Work around MySQL not allowing TEXT/BLOB fields to have a default value.
  // @see: http://bugs.mysql.com/bug.php?id=21532.
  if (!isset($account->signature) && !isset($edit['signature'])) {
    $edit['signature'] = '';
  }
}