SHARE
TWEET

Untitled

a guest Aug 18th, 2019 287 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <em> the@email.com</em> is already in use.  Have you forgotten your password?".
  2.      
  3. function MYMODULE_services_request_postprocess_alter($controller, $args, &$result) {
  4.   if (isset($result['form_errors'])) {
  5.     array_walk($result['form_errors'], function(&$error) {
  6.       $error = strip_tags($error);
  7.     });
  8.   }
  9. }
  10.      
  11. $mainMessage = "<em> the@email.com</em> is already in use.  Have you forgotten your password?";
  12. $rendered_message = DrupalCoreRenderMarkup::create($mainMessage);
  13. drupal_set_message($rendered_message);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top