Skip to content

Instantly share code, notes, and snippets.

@HyperGlide
Created July 3, 2013 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HyperGlide/5961d6c752f81848e790 to your computer and use it in GitHub Desktop.
Save HyperGlide/5961d6c752f81848e790 to your computer and use it in GitHub Desktop.
{ "rules_chk_email_add_4_manually_created_inq_by_sales_exist_yes" : {
"LABEL" : "Check if Email Address for Manually Created Inquiry by Sales Already Has An Account if YES Alert Sales",
"PLUGIN" : "rule",
"REQUIRES" : [ "rules", "commerce" ],
"IF" : [
{ "entity_exists" : {
"type" : "user",
"property" : "mail",
"value" : "[data:clients_email-value-raw]"
}
}
],
"DO" : [
{ "drupal_message" : {
"message" : "This email address already has an account! Please alert a sales manager.",
"type" : "warning"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment