Skip to main content
Post Merged (source) to drupal.stackexchange.com/questions/36192/…
Post Locked by avpaderno
Post Closed as "Duplicate" by avpaderno 7
removed "Drupal" from the title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How todo I suppress a core Drupal warning or error message set with drupal_set_message for site users?

The function file_unmanaged_copyfile_unmanaged_copy() in Drupal core calls drupal_set_message() on certain conditions. Even with visible errors messages disabled, anonymous users see this. Indeed, the comment in the code even has a TODO to change it to an exception.

Obviously I don't wish to hack core, so is. Is there a clean way to suppress this for anonymous and non-adminadministrator users?

Notably, the message is in a t() function, so I could use the stringoverridesString overrides module, but this would affect all users (including site administrator), so it's a bit problematic.

How to suppress a core Drupal warning or error message set with drupal_set_message for site users?

The function file_unmanaged_copy in Drupal core calls drupal_set_message on certain conditions. Even with visible errors messages disabled, anonymous users see this. Indeed, the comment in the code even has a TODO to change it to an exception.

Obviously I don't wish to hack core, so is there a clean way to suppress this for anonymous and non-admin users?

Notably, the message is in a t() function, so I could use the stringoverrides module, but this would affect all users (including site administrator), so it's a bit problematic.

How do I suppress a warning or error message for site users?

file_unmanaged_copy() drupal_set_message() on certain conditions. Even with visible errors messages disabled, anonymous users see this. Indeed, the comment in the code even has a TODO to change it to an exception.

Obviously I don't wish to hack core. Is there a clean way to suppress this for anonymous and non-administrator users?

Notably, the message is in a t() function, so I could use the String overrides module, but this would affect all users (including site administrator), so it's a bit problematic.

Notice removed Reward existing answer by No Sssweat
Bounty Ended with Pierre.Vriens's answer chosen by No Sssweat
Tweeted twitter.com/StackDrupal/status/692936633109368832
Notice added Reward existing answer by No Sssweat
Bounty Started worth 500 reputation by No Sssweat
edited title
Link
njp
  • 737
  • 2
  • 10
  • 29

How to suppress a core Drupal warning or error message set with drupal_set_message for site users?

added 1 character in body; edited title
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

How to suppress a drupal_set_message output by Drupal warning or error message for site users?

The function file_unmanaged_copy in Drupal core calls drupal_set_message on certain conditions. Even with visible errors messages disabled, anonymous users see this. Indeed, the comment in the code even has a TODO to change it to an exception.

Obviously I don't wish to hack core, so is there a clean way to supresssuppress this for anonymous and non-admin users?

Notably, the message is in a t() function, so I could use the stringoverrides module, but this would affect all users (including site administrator), so it's a bit problematic.

How to suppress a drupal_set_message output by Drupal for site users?

The function file_unmanaged_copy in Drupal core calls drupal_set_message on certain conditions. Even with visible errors messages disabled, anonymous users see this. Indeed, the comment in the code even has a TODO to change it to an exception.

Obviously I don't wish to hack core, so is there a clean way to supress this for anonymous and non-admin users?

Notably, the message is in a t() function, so I could use the stringoverrides module, but this would affect all users (including site administrator), so it's a bit problematic.

How to suppress a Drupal warning or error message for site users?

The function file_unmanaged_copy in Drupal core calls drupal_set_message on certain conditions. Even with visible errors messages disabled, anonymous users see this. Indeed, the comment in the code even has a TODO to change it to an exception.

Obviously I don't wish to hack core, so is there a clean way to suppress this for anonymous and non-admin users?

Notably, the message is in a t() function, so I could use the stringoverrides module, but this would affect all users (including site administrator), so it's a bit problematic.

added 2 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182
Loading
edited title
Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182
Loading
added 11 characters in body; edited title
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182
Loading
Source Link
njp
  • 737
  • 2
  • 10
  • 29
Loading