function field_test_field_test_op_multiple in SimpleTest 7
Generic op to test _field_invoke_multiple behavior.
File
- tests/
field_test.module, line 649
Code
function field_test_field_test_op_multiple($obj_type, $objects, $field, $instances, $langcode, &$items) {
$result = array();
foreach ($objects as $id => $object) {
$result[$id] = array(
$langcode => md5(serialize(array(
$obj_type,
$object,
$field['field_name'],
$langcode,
$items[$id],
))),
);
}
return $result;
}