Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function get_value_options() {
if (isset($this->value_options)) {
return;
}
...
This seems to be simply wrong.
Why return undefined when there is data to return?
Perhaps the following should be more appropriate?
function get_value_options() {
if (isset($this->value_options)) {
return $this->value_options;
}
...
Comments
Comment #1
dawehnerYou should always populate it, and the code will use the populated value.
Feel free to provide a fix, but this is really not critical.