You are here

function _signature_forum_get_max_characters in Signatures for Forums 7

Get the maximum character count allowed for signatures.

2 calls to _signature_forum_get_max_characters()
signature_forum_form_user_admin_settings_alter in ./signature_forum.module
Alter the account settings form.
_signature_forum_validate_signature in ./signature_forum.module
FAPI validation for the signature field of the user form.

File

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

Code

function _signature_forum_get_max_characters() {
  $value = variable_get('signature_forum_max_characters');
  if (!$value) {

    // Default to core signature field length.
    $users_table = drupal_get_schema_unprocessed('user', 'users');
    $value = $users_table['fields']['signature']['length'];
    variable_set('signature_forum_max_characters', $value);
  }
  return $value;
}