From 993b5cc162c68159abe0a259a39eee2bae84a67f Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 17 Nov 2023 14:21:11 -0500 Subject: [PATCH] Bump version to 3.0.231 --- wire/core/ProcessWire.php | 2 +- .../InputfieldTextTags/InputfieldTextTags.module | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 02c5ee3b..068a6f67 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -79,7 +79,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 230; + const versionRevision = 231; /** * Version suffix string (when applicable) diff --git a/wire/modules/Inputfield/InputfieldTextTags/InputfieldTextTags.module b/wire/modules/Inputfield/InputfieldTextTags/InputfieldTextTags.module index aa486b85..c1c2dc71 100644 --- a/wire/modules/Inputfield/InputfieldTextTags/InputfieldTextTags.module +++ b/wire/modules/Inputfield/InputfieldTextTags/InputfieldTextTags.module @@ -746,6 +746,21 @@ class InputfieldTextTags extends Inputfield implements return $this->addTag($value, $label); } + /** + * Add multiple selectable options + * + * @param array $options + * @return self + * @since 3.0.131 + * + */ + public function addOptions(array $options) { + foreach($options as $value => $label) { + $this->addTag($value, $label); + } + return $this; + } + /** * Add selectable option with label, optionally for specific language *