From f383c3a4325bc173b6f9676274bc19694be6f9c0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:49:44 +0000
Subject: [PATCH] =Modified the Feed Fields config in Registrar, to utilize the built in functionality there
---
forms/_setup.php | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/forms/_setup.php b/forms/_setup.php
index b3d9bbc..e74bf7d 100644
--- a/forms/_setup.php
+++ b/forms/_setup.php
@@ -1 +1,31 @@
<?php
+
+/*************************************************************
+ *
+ * Filters the forms for the form block
+ * Must contain an array with:
+ * 'title' => {string} optional
+ * 'description => {array} of strings, each entry becoming its own <p></p>
+ * 'submit' => {string} submit button text
+ * 'success_title' => {string} a custom heading for the success message
+ * 'success_message'=> {array} of strings, each entry becoming its own <p></p>
+ * 'email_subject' => {string} subject for admin's email
+ * 'fields' => {array} as per Meta.php
+ * 'sections' => {array} optional array of sections, as per Meta.php, for a tabbed form
+ *
+ ************************************************************/
+
+require(AJV_DIR . '/forms/get-an-estimate.php');
+require(AJV_DIR . '/forms/nlp.php');
+require(AJV_DIR . '/forms/contact.php');
+require(AJV_DIR . '/forms/partner.php');
+
+add_filter('jvb_register_forms', 'altr_register_forms');
+
+function altr_register_forms($forms) {
+ $forms['get_an_estimate'] = altr_get_an_estimate();
+ $forms['nlp'] = altr_nlp();
+ $forms['contact'] = altr_contact();
+ $forms['partner'] = altr_nlp_partner();
+ return $forms;
+}
\ No newline at end of file
--
Gitblit v1.10.0