-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathding_library.rules_defaults.inc
More file actions
41 lines (40 loc) · 1.15 KB
/
ding_library.rules_defaults.inc
File metadata and controls
41 lines (40 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @file
* ding_library.rules_defaults.inc
*/
/**
* Implements hook_default_rules_configuration().
*/
function ding_library_default_rules_configuration() {
$items = array();
$items['rules_ding_library_node_update'] = entity_import('rules_config', '{ "rules_ding_library_node_update" : {
"LABEL" : "Ding library node update",
"PLUGIN" : "reaction rule",
"TAGS" : [ "ding_library" ],
"REQUIRES" : [ "rules", "cache_actions" ],
"ON" : [ "node_insert", "node_update", "node_delete" ],
"IF" : [
{ "node_is_of_type" : {
"node" : [ "node" ],
"type" : { "value" : { "ding_library" : "ding_library" } }
}
}
],
"DO" : [
{ "cache_actions_action_clear_cache" : { "tables" : { "value" : {
"cache" : "cache",
"cache_block" : "cache_block",
"cache_page" : "cache_page",
"cache_similarterms" : "cache_similarterms",
"cache_token" : "cache_token",
"cache_views" : "cache_views"
}
}
}
}
]
}
}');
return $items;
}