| 12345678910111213141516171819202122232425262728293031 | 
							- <?php
 
- /**
 
-  * @file
 
-  * showroom.rules_defaults.inc
 
-  */
 
- /**
 
-  * Implements hook_default_rules_configuration().
 
-  */
 
- function showroom_default_rules_configuration() {
 
-   $items = array();
 
-   $items['rules_auto_tag_news_with_showroom'] = entity_import('rules_config', '{ "rules_auto_tag_news_with_showroom" : {
 
-       "LABEL" : "auto tag news with showroom",
 
-       "PLUGIN" : "reaction rule",
 
-       "REQUIRES" : [ "rules" ],
 
-       "ON" : [ "node_presave" ],
 
-       "IF" : [
 
-         { "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "breve" : "breve" } } } },
 
-         { "user_has_role" : { "account" : [ "node:author" ], "roles" : { "value" : { "15" : "15" } } } }
 
-       ],
 
-       "DO" : [
 
-         { "data_set" : {
 
-             "data" : [ "node:field-showroom" ],
 
-             "value" : [ "node:author:field-showroom" ]
 
-           }
 
-         }
 
-       ]
 
-     }
 
-   }');
 
-   return $items;
 
- }
 
 
  |