function field_patterns_export_all_ins in Patterns 7
Same name and namespace in other branches
- 7.2 patterns_components/components/field.inc \field_patterns_export_all_ins()
1 string reference to 'field_patterns_export_all_ins'
- field_patterns in patterns_components/
components/ field.inc - @file Patterns component for Fields.
File
- patterns_components/
components/ field.inc, line 37 - Patterns component for Fields.
Code
function field_patterns_export_all_ins($args = NULL, &$result = NULL) {
//$info = field_patterns();
_field_info_collate_fields(true);
_field_info_collate_types(true);
// $form_id = current($info['instance'][PATTERNS_MODIFY]);
$instances = field_read_instances();
$result = array();
foreach ($instances as $voc) {
$field = (array) field_info_instance($voc['entity_type'], $voc['field_name'], $voc['bundle']);
$data = array(
'tag' => 'instance',
);
$data = array_merge($data, $field);
$action = array(
PATTERNS_CREATE => $data,
);
array_push($result, $action);
}
return $result;
}