array (
'rules' =>
array (
'rules_4' =>
array (
'#type' => 'rule',
'#set' => 'event_node_presave',
'#label' => 'create the location lid to prepare for copying in location data',
'#active' => 1,
'#weight' => '-3',
'#categories' =>
array (
),
'#status' => 'custom',
'#conditions' =>
array (
0 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Saved content is Personal Information',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'module' => 'Node',
),
'#name' => 'rules_condition_content_is_type',
'#settings' =>
array (
'type' =>
array (
'personalinformation' => 'personalinformation',
),
'#argument map' =>
array (
'node' => 'node',
),
),
'#type' => 'condition',
),
),
'#actions' =>
array (
0 =>
array (
'#weight' => 0,
'#type' => 'action',
'#settings' =>
array (
'field_name' => 'field_homeaddress_adminview',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'name' => 'Viewable by administrators',
'street' => '',
'additional' => '',
'city' => '',
'province' => '',
'postal_code' => '',
'country' => 'us',
'cck_preview_in_progress' => true,
'location_settings' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '0',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'lid' =>
array (
'default' => false,
),
'name' =>
array (
'default' => '',
'collect' => 1,
'weight' => 2,
),
'street' =>
array (
'default' => '',
'collect' => 1,
'weight' => 4,
),
'additional' =>
array (
'default' => '',
'collect' => 1,
'weight' => 6,
),
'city' =>
array (
'default' => '',
'collect' => 0,
'weight' => 8,
),
'province' =>
array (
'default' => '',
'collect' => 0,
'weight' => 10,
),
'postal_code' =>
array (
'default' => '',
'collect' => 0,
'weight' => 12,
),
'country' =>
array (
'default' => 'us',
'collect' => 1,
'weight' => 14,
),
'locpick' =>
array (
'default' => false,
'collect' => 1,
'weight' => 20,
'nodiff' => true,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
),
'code' => '',
'vars' =>
array (
),
),
'#name' => 'content_rules_action_populate_field',
'#info' =>
array (
'label' => 'Populate saved content\'s field \'field_homeaddress_adminview\'',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|name',
2 => 'value|0|street',
3 => 'value|0|additional',
4 => 'value|0|city',
5 => 'value|0|province',
6 => 'value|0|postal_code',
7 => 'value|0|country',
),
'module' => 'CCK',
),
),
1 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Populate saved content\'s field \'field_homeaddress_leaderviewable\'',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|name',
2 => 'value|0|street',
3 => 'value|0|additional',
4 => 'value|0|city',
5 => 'value|0|province',
6 => 'value|0|postal_code',
7 => 'value|0|country',
),
'module' => 'CCK',
),
'#name' => 'content_rules_action_populate_field',
'#settings' =>
array (
'field_name' => 'field_homeaddress_leaderviewable',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'name' => 'Viewable by other Leaders',
'street' => '',
'additional' => '',
'city' => '',
'province' => '',
'postal_code' => '',
'country' => 'us',
'cck_preview_in_progress' => true,
'location_settings' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '0',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '1',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'lid' =>
array (
'default' => false,
),
'name' =>
array (
'default' => '',
'collect' => 1,
'weight' => 2,
),
'street' =>
array (
'default' => '',
'collect' => 1,
'weight' => 4,
),
'additional' =>
array (
'default' => '',
'collect' => 1,
'weight' => 6,
),
'city' =>
array (
'default' => '',
'collect' => 0,
'weight' => 8,
),
'province' =>
array (
'default' => '',
'collect' => 0,
'weight' => 10,
),
'postal_code' =>
array (
'default' => '',
'collect' => 0,
'weight' => 12,
),
'country' =>
array (
'default' => 'us',
'collect' => 1,
'weight' => 14,
),
'locpick' =>
array (
'default' => false,
'collect' => 1,
'weight' => 20,
'nodiff' => true,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
),
'code' => '',
'vars' =>
array (
),
),
'#type' => 'action',
),
2 =>
array (
'#type' => 'action',
'#settings' =>
array (
'field_name' => 'field_homeaddress_public',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'name' => 'Viewable by the Public',
'street' => '',
'additional' => '',
'city' => '',
'province' => '',
'postal_code' => '',
'country' => 'us',
'cck_preview_in_progress' => true,
'location_settings' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '0',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'lid' =>
array (
'default' => false,
),
'name' =>
array (
'default' => '',
'collect' => 1,
'weight' => 2,
),
'street' =>
array (
'default' => '',
'collect' => 1,
'weight' => 4,
),
'additional' =>
array (
'default' => '',
'collect' => 1,
'weight' => 6,
),
'city' =>
array (
'default' => '',
'collect' => 0,
'weight' => 8,
),
'province' =>
array (
'default' => '',
'collect' => 0,
'weight' => 10,
),
'postal_code' =>
array (
'default' => '',
'collect' => 0,
'weight' => 12,
),
'country' =>
array (
'default' => 'us',
'collect' => 1,
'weight' => 14,
),
'locpick' =>
array (
'default' => false,
'collect' => 1,
'weight' => 20,
'nodiff' => true,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
),
'code' => '',
'vars' =>
array (
),
),
'#name' => 'content_rules_action_populate_field',
'#info' =>
array (
'label' => 'Populate saved content\'s field \'field_homeaddress_public\'',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|name',
2 => 'value|0|street',
3 => 'value|0|additional',
4 => 'value|0|city',
5 => 'value|0|province',
6 => 'value|0|postal_code',
7 => 'value|0|country',
),
'module' => 'CCK',
),
'#weight' => 0,
),
),
'#version' => 6003,
),
),
)
and the second to copy the date
array (
'rules' =>
array (
'rules_3' =>
array (
'#type' => 'rule',
'#set' => 'event_node_presave',
'#label' => 'set address public private',
'#active' => 1,
'#weight' => '3',
'#categories' =>
array (
),
'#status' => 'custom',
'#conditions' =>
array (
0 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Saved content is Personal Information',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'module' => 'Node',
),
'#name' => 'rules_condition_content_is_type',
'#settings' =>
array (
'type' =>
array (
'personalinformation' => 'personalinformation',
),
'#argument map' =>
array (
'node' => 'node',
),
),
'#type' => 'condition',
),
),
'#actions' =>
array (
0 =>
array (
'#weight' => 0,
'#type' => 'action',
'#settings' =>
array (
'field_name' => 'field_homeaddress_leaderviewable',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'name' => '',
'street' => '',
'additional' => '',
'city' => '',
'province' => '',
'postal_code' => '',
'country' => 'us',
'cck_preview_in_progress' => true,
'location_settings' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '0',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '1',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'lid' =>
array (
'default' => false,
),
'name' =>
array (
'default' => '',
'collect' => 1,
'weight' => 2,
),
'street' =>
array (
'default' => '',
'collect' => 1,
'weight' => 4,
),
'additional' =>
array (
'default' => '',
'collect' => 1,
'weight' => 6,
),
'city' =>
array (
'default' => '',
'collect' => 0,
'weight' => 8,
),
'province' =>
array (
'default' => '',
'collect' => 0,
'weight' => 10,
),
'postal_code' =>
array (
'default' => '',
'collect' => 0,
'weight' => 12,
),
'country' =>
array (
'default' => 'us',
'collect' => 1,
'weight' => 14,
),
'locpick' =>
array (
'default' => false,
'collect' => 1,
'weight' => 20,
'nodiff' => true,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
),
'code' => 'if (strcmp(($node->field_homeaddress_privacy[0][\'value\']),"Private") == 0) {
return array(
0 => array(
\'name\' => \'Private\',
)
);
} else if (strcmp(($node->field_homeaddress_privacy[0][\'value\']),"Public") == 0) {
return array(
0 => array(
\'name\' => $node->field_homeaddress[0][name],
\'street\' => $node->field_homeaddress[0][street],
\'additional\' => $node->field_homeaddress[0][additional],
\'city\' => $node->field_homeaddress[0][city],
\'province\' => $node->field_homeaddress[0][province],
\'postal_code\' => $node->field_homeaddress[0][postal_code]
)
);
} else if (strcmp(($node->field_homeaddress_privacy[0][\'value\']),"Leader") == 0) {
return array(
0 => array(
\'name\' => $node->field_homeaddress[0][name],
\'street\' => $node->field_homeaddress[0][street],
\'additional\' => $node->field_homeaddress[0][additional],
\'city\' => $node->field_homeaddress[0][city],
\'province\' => $node->field_homeaddress[0][province],
\'postal_code\' => $node->field_homeaddress[0][postal_code]
)
);
} else {
return array(
0 => array(
\'name\' => \'Not set. Defaulting to Private.\',
)
);
}',
'vars' =>
array (
0 => 'node',
),
),
'#name' => 'content_rules_action_populate_field',
'#info' =>
array (
'label' => 'Populate a field leader viewable address',
'label callback' => false,
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|name',
2 => 'value|0|street',
3 => 'value|0|additional',
4 => 'value|0|city',
5 => 'value|0|province',
6 => 'value|0|postal_code',
7 => 'value|0|country',
),
'module' => 'CCK',
),
),
2 =>
array (
'#weight' => 0,
'#type' => 'action',
'#settings' =>
array (
'field_name' => 'field_homeaddress_public',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'name' => '',
'street' => '',
'additional' => '',
'city' => '',
'province' => '',
'postal_code' => '',
'country' => 'us',
'cck_preview_in_progress' => true,
'location_settings' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '0',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'lid' =>
array (
'default' => false,
),
'name' =>
array (
'default' => '',
'collect' => 1,
'weight' => 2,
),
'street' =>
array (
'default' => '',
'collect' => 1,
'weight' => 4,
),
'additional' =>
array (
'default' => '',
'collect' => 1,
'weight' => 6,
),
'city' =>
array (
'default' => '',
'collect' => 0,
'weight' => 8,
),
'province' =>
array (
'default' => '',
'collect' => 0,
'weight' => 10,
),
'postal_code' =>
array (
'default' => '',
'collect' => 0,
'weight' => 12,
),
'country' =>
array (
'default' => 'us',
'collect' => 1,
'weight' => 14,
),
'locpick' =>
array (
'default' => false,
'collect' => 1,
'weight' => 20,
'nodiff' => true,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
),
'code' => 'if (strcmp(($node->field_homeaddress_privacy[0][\'value\']),"Private") == 0) {
return array(
0 => array(
\'name\' => \'Private\',
)
);
} else if (strcmp(($node->field_homeaddress_privacy[0][\'value\']),"Public") == 0) {
return array(
0 => array(
\'name\' => $node->field_homeaddress[0][name],
\'street\' => \'\',
\'additional\' => \'\',
\'city\' => $node->field_homeaddress[0][city],
\'province\' => $node->field_homeaddress[0][province],
\'postal_code\' => $node->field_homeaddress[0][postal_code]
)
);
} else if (strcmp(($node->field_homeaddress_privacy[0][\'value\']),"Leader") == 0) {
return array(
0 => array(
\'name\' => \'Leader\',
)
);
} else {
return array(
0 => array(
\'name\' => \'Not set. Defaulting to Private.\',
)
);
}',
'vars' =>
array (
0 => 'node',
),
),
'#name' => 'content_rules_action_populate_field',
'#info' =>
array (
'label' => 'Populate a field public address parts',
'label callback' => false,
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|name',
2 => 'value|0|street',
3 => 'value|0|additional',
4 => 'value|0|city',
5 => 'value|0|province',
6 => 'value|0|postal_code',
7 => 'value|0|country',
),
'module' => 'CCK',
),
),
1 =>
array (
'#type' => 'action',
'#settings' =>
array (
'field_name' => 'field_homeaddress_adminview',
'#argument map' =>
array (
'node' => 'node',
),
'value' =>
array (
0 =>
array (
'name' => '',
'street' => '',
'additional' => '',
'city' => '',
'province' => '',
'postal_code' => '',
'country' => 'us',
'cck_preview_in_progress' => true,
'location_settings' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '1',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' => false,
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'name' =>
array (
'default' => '',
'collect' => '0',
'weight' => '2',
),
'street' =>
array (
'default' => '',
'collect' => '1',
'weight' => '4',
),
'additional' =>
array (
'default' => '',
'collect' => '1',
'weight' => '6',
),
'city' =>
array (
'default' => '',
'collect' => '1',
'weight' => '8',
),
'province' =>
array (
'default' => '',
'collect' => '1',
'weight' => '10',
),
'postal_code' =>
array (
'default' => '',
'collect' => '1',
'weight' => '12',
),
'country' =>
array (
'default' => 'us',
'collect' => '1',
'weight' => '14',
),
'locpick' =>
array (
'default' =>
array (
'user_latitude' => '',
'user_longitude' => '',
),
'collect' => '0',
'weight' => '20',
'nodiff' => true,
),
'cck_preview_in_progress' =>
array (
'default' => true,
),
'location_settings' =>
array (
'default' =>
array (
'form' =>
array (
'fields' =>
array (
'lid' =>
array (
'default' => false,
),
'name' =>
array (
'default' => '',
'collect' => 1,
'weight' => 2,
),
'street' =>
array (
'default' => '',
'collect' => 1,
'weight' => 4,
),
'additional' =>
array (
'default' => '',
'collect' => 1,
'weight' => 6,
),
'city' =>
array (
'default' => '',
'collect' => 0,
'weight' => 8,
),
'province' =>
array (
'default' => '',
'collect' => 0,
'weight' => 10,
),
'postal_code' =>
array (
'default' => '',
'collect' => 0,
'weight' => 12,
),
'country' =>
array (
'default' => 'us',
'collect' => 1,
'weight' => 14,
),
'locpick' =>
array (
'default' => false,
'collect' => 1,
'weight' => 20,
'nodiff' => true,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
'lid' =>
array (
'default' => false,
),
'latitude' =>
array (
'default' => 0,
),
'longitude' =>
array (
'default' => 0,
),
'source' =>
array (
'default' => 0,
),
'is_primary' =>
array (
'default' => 0,
),
'delete_location' =>
array (
'default' => false,
'nodiff' => true,
),
),
),
'display' =>
array (
'hide' =>
array (
'name' => 0,
'street' => 0,
'additional' => 0,
'city' => 0,
'province' => 0,
'postal_code' => 0,
'country' => 0,
'locpick' => 0,
'province_name' => 0,
'country_name' => 0,
'map_link' => 0,
'coords' => 0,
),
),
),
),
),
'code' => 'return array(
0 => array(
\'name\' => $node->field_homeaddress[0][name],
\'street\' => $node->field_homeaddress[0][street],
\'additional\' => $node->field_homeaddress[0][additional],
\'city\' => $node->field_homeaddress[0][city],
\'province\' => $node->field_homeaddress[0][province],
\'postal_code\' => $node->field_homeaddress[0][postal_code]
)
);',
'vars' =>
array (
0 => 'node',
),
'#eval input' =>
array (
'token_rules_input_evaluator' =>
array (
'value|0|street' =>
array (
0 => 'node',
),
'value|0|additional' =>
array (
0 => 'node',
),
'value|0|city' =>
array (
0 => 'node',
),
),
),
),
'#name' => 'content_rules_action_populate_field',
'#info' =>
array (
'label' => 'Populate saved content\'s field \'field_homeaddress_adminview\'',
'arguments' =>
array (
'node' =>
array (
'type' => 'node',
'label' => 'Content',
),
),
'eval input' =>
array (
0 => 'code',
1 => 'value|0|name',
2 => 'value|0|street',
3 => 'value|0|additional',
4 => 'value|0|city',
5 => 'value|0|province',
6 => 'value|0|postal_code',
7 => 'value|0|country',
),
'module' => 'CCK',
),
'#weight' => 1,
),
),
'#version' => 6003,
),
),
)