function _multifield_field_item_to_entity in Multifield 7
Same name and namespace in other branches
- 7.2 multifield.module \_multifield_field_item_to_entity()
14 calls to _multifield_field_item_to_entity()
- MultifieldEntityController::queryLoad in ./
MultifieldEntityController.php - multifield_devel_generate in ./
multifield.devel_generate.inc - Implements hook_devel_generate().
- multifield_field_access in ./
multifield.field.inc - Implements hook_field_access().
- multifield_field_attach_submit in ./
multifield.field.inc - Implements hook_field_attach_submit().
- multifield_field_delete in ./
multifield.field.inc - Implements hook_field_delete().
File
- ./
multifield.module, line 398
Code
function _multifield_field_item_to_entity($machine_name, array $item) {
$pseudo_entity = (object) ($item + array(
'id' => NULL,
));
$pseudo_entity->type = $machine_name;
return $pseudo_entity;
}