From 73b92d0c0bdc8d91ad32aa4087872d85499ce65a Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Fri, 19 Feb 2021 16:11:56 +0100 Subject: [PATCH] Add project identifier to TwingleProject.get and .getsingle specs --- api/v3/TwingleProject/Get.php | 7 +++++++ api/v3/TwingleProject/Getsingle.php | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/api/v3/TwingleProject/Get.php b/api/v3/TwingleProject/Get.php index 763e1e4..12d2d0b 100644 --- a/api/v3/TwingleProject/Get.php +++ b/api/v3/TwingleProject/Get.php @@ -48,6 +48,13 @@ function _civicrm_api3_twingle_project_Get_spec(array &$spec) { 'api.required' => 0, 'description' => E::ts('Twingle ID for this project'), ]; + $spec['identifier'] = [ + 'name' => 'identifier', + 'title' => E::ts('Twingle Project Identifier'), + 'type' => CRM_Utils_Type::T_STRING, + 'api.required' => 0, + 'description' => E::ts('Twingle Project Identifier'), + ]; $spec['last_modified_id'] = [ 'name' => 'last_modified_id', 'title' => E::ts('Campaign Modified By'), diff --git a/api/v3/TwingleProject/Getsingle.php b/api/v3/TwingleProject/Getsingle.php index 1eab22d..8792197 100644 --- a/api/v3/TwingleProject/Getsingle.php +++ b/api/v3/TwingleProject/Getsingle.php @@ -46,6 +46,13 @@ function _civicrm_api3_twingle_project_Getsingle_spec(array &$spec) { 'api.required' => 0, 'description' => E::ts('Twingle ID for this project'), ]; + $spec['identifier'] = [ + 'name' => 'identifier', + 'title' => E::ts('Twingle Project Identifier'), + 'type' => CRM_Utils_Type::T_STRING, + 'api.required' => 0, + 'description' => E::ts('Twingle Project Identifier'), + ]; $spec['last_modified_id'] = [ 'name' => 'last_modified_id', 'title' => E::ts('Campaign Modified By'),