Currently, it is difficult to customize login/logout messages

  • You are now masquerading as ...
  • You are no longer masquerading as ...

because they are hardcoded when calling drupal_set_message()

This patch will add 2 custom hooks to allow other modules to customize these messages.

  • hook_masquerade_message_login()
  • hook_masquerade_message_logout()

Comments

geoffray created an issue. See original summary.

geoffray’s picture

StatusFileSize
new2.04 KB
andypost’s picture

Status: Needs review » Closed (works as designed)

Thanx for the patch, but there's no reason for hooks, core has string overrides that exactly for the case when you need to override initial message, see http://cgit.drupalcode.org/drupal/tree/sites/default/default.settings.ph...