| 1 |
// $Id: $ |
// $Id: README.txt,v 1.9 2009/01/29 19:59:34 brmassa Exp $ |
| 2 |
NODE EXPIRE |
NODE EXPIRE |
| 3 |
=========== |
=========== |
| 4 |
|
|
| 45 |
Daryl Houston <daryl@learnhouston.com> (Original author) |
Daryl Houston <daryl@learnhouston.com> (Original author) |
| 46 |
Andrew Langland (D5-dev and D6-dev rewrite) |
Andrew Langland (D5-dev and D6-dev rewrite) |
| 47 |
Bruno Massa (D6 v2 rewrite) |
Bruno Massa (D6 v2 rewrite) |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
RULES MODULE EXAMPLE |
| 51 |
|
==================== |
| 52 |
|
|
| 53 |
|
For those people that want to use this module quickly, import the code below on |
| 54 |
|
admin/rules/ie/import and it will automatically configure it to unpublish the |
| 55 |
|
content once it expires. Just paste it and have fun. |
| 56 |
|
|
| 57 |
|
array ( |
| 58 |
|
'rules' => |
| 59 |
|
array ( |
| 60 |
|
'rules_6' => |
| 61 |
|
array ( |
| 62 |
|
'#type' => 'rule', |
| 63 |
|
'#set' => 'event_node_expired', |
| 64 |
|
'#label' => 'Content expired', |
| 65 |
|
'#active' => 1, |
| 66 |
|
'#weight' => '0', |
| 67 |
|
'#status' => 'custom', |
| 68 |
|
'#conditions' => |
| 69 |
|
array ( |
| 70 |
|
), |
| 71 |
|
'#actions' => |
| 72 |
|
array ( |
| 73 |
|
0 => |
| 74 |
|
array ( |
| 75 |
|
'#weight' => 0, |
| 76 |
|
'#info' => |
| 77 |
|
array ( |
| 78 |
|
'label' => 'Unpublish content expired', |
| 79 |
|
'module' => 'Node', |
| 80 |
|
'arguments' => |
| 81 |
|
array ( |
| 82 |
|
'node' => |
| 83 |
|
array ( |
| 84 |
|
'label' => 'Content', |
| 85 |
|
'type' => 'node', |
| 86 |
|
), |
| 87 |
|
), |
| 88 |
|
'base' => 'rules_core_action_execute', |
| 89 |
|
'action_name' => 'node_unpublish_action', |
| 90 |
|
'configurable' => false, |
| 91 |
|
'label callback' => 'rules_core_node_label_callback', |
| 92 |
|
'label_skeleton' => 'Unpublish @node', |
| 93 |
|
), |
| 94 |
|
'#name' => 'rules_core_node_unpublish_action', |
| 95 |
|
'#settings' => |
| 96 |
|
array ( |
| 97 |
|
'auto_save' => 1, |
| 98 |
|
'#argument map' => |
| 99 |
|
array ( |
| 100 |
|
'node' => 'node', |
| 101 |
|
), |
| 102 |
|
), |
| 103 |
|
'#type' => 'action', |
| 104 |
|
), |
| 105 |
|
), |
| 106 |
|
), |
| 107 |
|
), |
| 108 |
|
) |