You are here

function signature_forum_schema_alter in Signatures for Forums 7

Implementation of hook_schema_alter().

File

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

Code

function signature_forum_schema_alter(&$schema) {

  // Allow longer signatures than the default 255 characters.
  drupal_load('module', 'signature_forum');
  $schema['users']['fields']['signature']['type'] = 'text';
  $schema['users']['fields']['signature']['length'] = SIGNATURE_FORUM_FIELD_LENGTH;
  unset($schema['users']['fields']['signature']['default']);
  $schema['users']['fields']['signature']['not null'] = FALSE;
}