Skip to content

backdrop-contrib/replicate

Repository files navigation

Replicate

Provides an API to duplicate / clone an entity.

Replicate provides a main cloning function, along with several hooks to control exactly how a field or entity is duplicated based on its type, add info after cloning, and supports custom fields and entities. It is intended to developers and does not contain any GUI (a dedicated module is available).

The goal is to provide a way to easily clone any entity, and to allow developers to be able to control exactly how entities are replicated, based on their type or the fields they contain, and to be able to easily extend the replication control to custom fields or entities.

Installation

Usage

  • Use the replicate_clone_entity() function to clone an entity without saving it.
  • Use the replicate_entity() function to clone an entity and save it at the end of the process.
  • See the replicate.api.php file for detailed use of hooks functions.

More details may be found (or added) in the Wiki

Issues

Bugs and Feature requests should be reported in the Issue Queue

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Provides an API to duplicate / clone an entity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages