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 *