Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions field_collection.module
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,10 @@ function field_collection_field_insert($host_entity_type, $host_entity, $field,
'revision_id' => $entity->revision_id,
);

module_load_include('inc', 'path');
path_save_automatic_entity_alias($entity);
if (module_exists('path')) {
module_load_include('inc', 'path');
path_save_automatic_entity_alias($entity);
}

// This is necessary to get the $host_entity to display the new field
// collection item.
Expand Down Expand Up @@ -601,8 +603,10 @@ function field_collection_field_update($host_entity_type, $host_entity, $field,
'revision_id' => $entity->revision_id,
);

module_load_include('inc', 'path');
path_save_automatic_entity_alias($entity);
if (module_exists('path')) {
module_load_include('inc', 'path');
path_save_automatic_entity_alias($entity);
}

// This is necessary to get the $host_entity to display the new field
// collection item.
Expand Down