From 8bc7c4763cbaed4c2e13186b72d49adb8129ee32 Mon Sep 17 00:00:00 2001 From: Josh Pollock Date: Tue, 7 Aug 2018 13:59:19 -0400 Subject: [PATCH] #857 add clone argument for create form --- classes/api/forms.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/api/forms.php b/classes/api/forms.php index 1f8cb8386..c028b48dd 100755 --- a/classes/api/forms.php +++ b/classes/api/forms.php @@ -452,6 +452,11 @@ public function args_for_create(){ 'type' => 'string', 'required' => false, 'enum' => array_keys($templates) + ], + 'clone' => [ + 'description' => __( 'The ID of a form to clone', 'caldera-forms' ), + 'type' => 'string', + 'required' => false, ] ]; }