Customized message not used

Created on 12 March 2014, over 11 years ago
Updated 18 July 2025, 3 months ago

Hi,

I installed this module and found out that at least on user register form the field is still visible (https://drupal.org/node/1970488). I simply used custom css so solve this... but what I found out additionally is that the customized decription is not used on any form.

This is caused by the lines 63 ff in spamicide.inc:

function _spamicide_get_description($lang_code=NULL) {
  global $language;
  $lang_code = isset($lang_code) ? $lang_code : $language->language;
  $default = t('To prevent automated spam submissions leave this field empty.');
  if (module_exists('locale')) {
    $description = variable_get("spamicide_description_$lang_code", $default);
  }
  else {
    $description = variable_get('spamicide_description', $default);
  }
  return $description;
}

I have the locale module activated as I manage a German project. I do not know where the variable "spamicide_description_$lang_code" should come from as nowhere in this module it is saved in this way. I use German as default.

Best,
Tobias

🐛 Bug report
Status

Closed: outdated

Version

1.2

Component

Code

Created by

🇩🇪Germany tobiberlin Berlin, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024