Skip to content
Snippets Groups Projects
Commit 180dc6d8 authored by Lily Yan's avatar Lily Yan Committed by tbunyado
Browse files

RT#603687 Fix general error: 364 Field plugin does not have a default value...

RT#603687 Fix general error: 364 Field plugin does not have a default value when refresh install fdsu site.
parent 044cbb31
No related branches found
No related tags found
No related merge requests found
......@@ -877,9 +877,11 @@ function _entity_defaults_rebuild($entity_type) {
$entities = array();
foreach (module_implements($hook) as $module) {
foreach ((array) module_invoke($module, $hook) as $name => $entity) {
$entity->{$keys['name']} = $name;
$entity->{$keys['module']} = $module;
$entities[$name] = $entity;
if ($entity) {
$entity->{$keys['name']} = $name;
$entity->{$keys['module']} = $module;
$entities[$name] = $entity;
}
}
}
drupal_alter($hook, $entities);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment