From Aspen Documentation
Duplicates records using INSERT... SELECT...
Since 1.0
Arguments
integer duplicate' (string $table, string $id, [string $field_name = 'id'], [string $replace_field = false])
- table
- Database table name.
- id
- Field match value.
- field_name
- Name of field to match. If false, primary key is assumed.
- replace_field
- ?
Returns
Returns an integer of the newest record id.