Skip to main content
Included an importable
Source Link
jan
  • 865
  • 1
  • 10
  • 26

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( !emptycount(taxonomy_get_term_by_name([node'[node:field-tags]tags]')) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires
-PHP Filter,
-Rules.
-Here the content type assumes the default 'Article' with default Tags field 'field_tags'

{ "rules_tst" : {
"LABEL" : "Test Rule",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "php" ],
"ON" : { "node_insert--article" : { "bundle" : "article" } },
"IF" : [
  { "php_eval" : { "code" : "if( count(taxonomy_get_term_by_name(\u0027[node:field-tags]\u0027)) ) return TRUE; \r\nelse return FALSE;  " } }
],
"DO" : [
  { "mail" : {
      "to" : "[email protected]",
      "subject" : "test subject Toys confirmed!",
      "message" : "There are toys to play with!",
      "language" : [ "" ]
    }
  }
]

} }

I ahve included an importable for you to test.

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( !empty(taxonomy_get_term_by_name([node:field-tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires
-PHP Filter,
-Rules.
-Here the content type assumes the default 'Article' with default Tags field 'field_tags'

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( count(taxonomy_get_term_by_name('[node:field-tags]')) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires
-PHP Filter,
-Rules.
-Here the content type assumes the default 'Article' with default Tags field 'field_tags'

{ "rules_tst" : {
"LABEL" : "Test Rule",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "php" ],
"ON" : { "node_insert--article" : { "bundle" : "article" } },
"IF" : [
  { "php_eval" : { "code" : "if( count(taxonomy_get_term_by_name(\u0027[node:field-tags]\u0027)) ) return TRUE; \r\nelse return FALSE;  " } }
],
"DO" : [
  { "mail" : {
      "to" : "[email protected]",
      "subject" : "test subject Toys confirmed!",
      "message" : "There are toys to play with!",
      "language" : [ "" ]
    }
  }
]

} }

I ahve included an importable for you to test.

Renamed to field_tags as case by default, spelling corrected
Source Link
jan
  • 865
  • 1
  • 10
  • 26

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( !empty(taxonomy_get_term_by_name([node:field-tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires:  
-PHP Filter and Rules enabled,
-Rules.  
-YourHere the content type has to have aassumes the default 'Article' with default Tags field for your taxonomy'field_tags'

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( !empty(taxonomy_get_term_by_name([node:field-tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires: -PHP Filter and Rules enabled. -Your content type has to have a field for your taxonomy

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( !empty(taxonomy_get_term_by_name([node:field-tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires 
-PHP Filter,
-Rules.  
-Here the content type assumes the default 'Article' with default Tags field 'field_tags'

Renamed to field_tags as case by default, spelling corrected
Source Link
jan
  • 865
  • 1
  • 10
  • 26

I would create this using a Custom PHP code in rulesRules and execute the following conditional code afteron 'After saving a new nodecontent of type...' event trigger :

if( !empty(taxonomy_get_term_by_name([node:field_tags]field-tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires: -PHP Filter and Rules enabled. -Your content type has to have a field for your taxonomy

I would create this using a Custom PHP code in rules and execute the following conditional code after saving a new node trigger :

if( !empty(taxonomy_get_term_by_name([node:field_tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires: -PHP Filter and Rules enabled. -Your content type has to have a field for your taxonomy

I would create this using a Custom PHP code in Rules and execute the following conditional code on 'After saving new content of type...' event trigger :

if( !empty(taxonomy_get_term_by_name([node:field-tags])) ) return TRUE; 
else return FALSE;  

Then create an 'action to send an email'.

Requires: -PHP Filter and Rules enabled. -Your content type has to have a field for your taxonomy

Renamed to field_tags as case by default
Source Link
jan
  • 865
  • 1
  • 10
  • 26
Loading
added requires for clarity
Source Link
jan
  • 865
  • 1
  • 10
  • 26
Loading
Source Link
jan
  • 865
  • 1
  • 10
  • 26
Loading