Convert '_none' option to a constant and deprecate form_select_options()

Created on 9 March 2015, about 10 years ago
Updated 28 November 2022, over 2 years ago

Problem/Motivation

The string '_none' is repeated throughout the module and tests, using a constant makes it easier to refactor.

Proposed resolution

  1. Convert _none to a constant.
  2. Move form_select_options() to a helper class.

API changes

String '_none' is converted to constant.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Optionsย  โ†’

Last updated 14 days ago

No maintainer
Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia dashaforbes

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024