Commit 94e5ba41 authored by alexpott's avatar alexpott

Issue #2009002 by Floydm: Replace theme() with drupal_render() in edit module.

parent 4370959d
......@@ -132,7 +132,10 @@ public function fieldForm(EntityInterface $entity, $field_name, $langcode, $view
$errors = form_get_errors();
if (count($errors)) {
$response->addCommand(new FieldFormValidationErrorsCommand(theme('status_messages')));
$status_messages = array(
'#theme' => 'status_messages'
);
$response->addCommand(new FieldFormValidationErrorsCommand(drupal_render($status_messages)));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment