public function MultifieldTestBase::submitEntity in Multifield 7.2
Same name and namespace in other branches
- 7 tests/MultifieldTestBase.test \MultifieldTestBase::submitEntity()
1 call to MultifieldTestBase::submitEntity()
File
- tests/
MultifieldTestBase.test, line 13
Class
Code
public function submitEntity($entity_type, $entity) {
// Invoke the submission hooks which removes empty field values.
$form = array(
'#parents' => array(),
);
$form_state = array(
'values' => array(),
);
field_attach_submit($entity_type, $entity, $form, $form_state);
}