Issue #2009002 by Floydm: Replace theme() with drupal_render() in edit module.
parent
4370959d5e
commit
94e5ba411b
|
@ -132,7 +132,10 @@ class EditController extends ContainerAware {
|
|||
|
||||
$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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue