+ /**
+ * Get the active UFGroups (profiles) on this form
+ * Many forms load one or more UFGroups (profiles).
+ * This provides a standard function to retrieve the IDs of those profiles from the form
+ * so that you can implement things such as "is is_captcha field set on any of the active profiles on this form?"
+ *
+ * NOT SUPPORTED FOR USE OUTSIDE CORE EXTENSIONS - Added for reCAPTCHA core extension.
+ *
+ * @return array
+ */
+ public function getUFGroupIDs() {
+ $ufGroupIDs = [];
+ if (!empty($this->_pageId)) {
+ $ufGroupIDs[] = CRM_PCP_BAO_PCP::getSupporterProfileId($this->_pageId, $this->_component);
+ }
+ return $ufGroupIDs;
+ }
+