From ca32c2fbcc14419638e2a32f8a418843cae5657a Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 7 Nov 2022 13:05:18 -0800 Subject: [PATCH] Issue #4906 - Added option for custom list button. --- e107_handlers/admin_ui.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index e591e36dfd..248724311a 100755 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -7741,12 +7741,16 @@ public function renderFilter($current_query = array(), $location = '', $input_op -
"; - +
"; // Let Admin know which language table is being saved to. (avoid default table overwrites) - $text .= $this->renderLanguageTableInfo(); - + if($languageInfo = $this->renderLanguageTableInfo()) + { + $text .= "
".$languageInfo.'
'; + } + + $text .= $this->renderCustomListButton(); // Optional + $text .= '
@@ -7877,6 +7881,15 @@ public function renderFilter($current_query = array(), $location = '', $input_op return $text; } + /** + * Optional + * @return null|string + */ + public function renderCustomListButton() + { + return null; // "Add New"; + } + /** * @return string|null