array (
'rules' =>
array (
'rules_12' =>
array (
'#type' => 'rule',
'#set' => 'event_node_presave',
'#label' => 'Habitable Structure NOT Non-Habitable',
'#active' => 1,
'#weight' => '0',
'#status' => 'custom',
'#conditions' =>
array (
0 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Saved content is Value At Risk',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'module' => 'Node',
),
'#name' => 'rules_condition_content_is_type',
'#settings' =>
array (
'type' =>
array (
'var' => 'var',
),
'#argument map' =>
array (
'node' => 'node',
),
),
'#type' => 'condition',
),
1 =>
array (
'#type' => 'OR',
0 =>
array (
'#type' => 'condition',
'#settings' =>
array (
'field_name' => 'field_var_display',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'value' => '4',
),
),
'code' => '',
'vars' =>
array (
),
),
'#name' => 'content_rules_field_has_value',
'#info' =>
array (
'label' => 'Saved content\'s field \'field_var_display\' has value',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|value',
),
'module' => 'CCK',
),
'#weight' => 0,
),
'#weight' => 0,
1 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Saved content\'s field \'field_var_display\' has value',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|value',
),
'module' => 'CCK',
),
'#name' => 'content_rules_field_has_value',
'#settings' =>
array (
'field_name' => 'field_var_display',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'value' => '3',
),
),
'code' => '',
'vars' =>
array (
),
),
'#type' => 'condition',
),
),
),
'#actions' =>
array (
0 =>
array (
'#weight' => 0,
'#type' => 'action',
'#settings' =>
array (
'field_name' => 'field_var_human_life',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'value' => '3',
),
),
'code' => '',
'vars' =>
array (
),
),
'#name' => 'content_rules_action_populate_field',
'#info' =>
array (
'label' => 'Populate saved content\'s field \'field_var_human_life\'',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|value',
),
'module' => 'CCK',
),
),
1 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Show a configurable message on the site',
'module' => 'System',
'eval input' =>
array (
0 => 'message',
),
),
'#name' => 'rules_action_drupal_message',
'#settings' =>
array (
'message' => '
You have selected Habitable Structurefor category.
The Human life designation for this catagory CAN NOT be Non-habitable.
The system has corrected your entry by changing the Human Life designation to "Occupancy Unknown". If this is NOT correct please edit the VAR and select an appropriate Category.',
'error' => 1,
),
'#type' => 'action',
),
),
),
),
)