From 65c1b4213f5236ee256afb4b5b3965b3e1de5522 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Thu, 5 Mar 2020 23:46:01 +0000 Subject: [PATCH] Add pcp shortcodes --- CRM/Core/Form/ShortCode.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Form/ShortCode.php b/CRM/Core/Form/ShortCode.php index 5f8129296a..3a2b084b5f 100644 --- a/CRM/Core/Form/ShortCode.php +++ b/CRM/Core/Form/ShortCode.php @@ -82,6 +82,14 @@ class CRM_Core_Form_ShortCode extends CRM_Core_Form { 'select' => ['minimumInputLength' => 0], ], ]; + $this->components['pcp'] = [ + 'label' => ts("Personal Campaign Page"), + 'select' => [ + 'key' => 'id', + 'entity' => 'Pcp', + 'select' => ['minimumInputLength' => 0], + ], + ]; } if (in_array('CiviEvent', $config->enableComponents)) { @@ -122,7 +130,7 @@ class CRM_Core_Form_ShortCode extends CRM_Core_Form { ], [ 'key' => 'mode', - 'components' => ['contribution', 'event'], + 'components' => ['contribution', 'pcp', 'event'], 'options' => [ 'live' => ts('Live Mode'), 'test' => ts('Test Drive'), -- 2.25.1