Skip to content

Remove deprecated default_value key from entity_value#724

Merged
jmolivas merged 1 commit intohechoendrupal:masterfrom
artfulrobot:master
Jul 2, 2015
Merged

Remove deprecated default_value key from entity_value#724
jmolivas merged 1 commit intohechoendrupal:masterfrom
artfulrobot:master

Conversation

@artfulrobot
Copy link
Copy Markdown

The correct way to set a default value on an entity is to use setDefaultValue() and not to pass a default_value key in the base table defs.

See related patch to examples module.

Nb. I think it is useful to keep this code (which sets a zero-length string as the default) in there as an example of how to provide a default.

@jmolivas jmolivas modified the milestone: 0.7.15-release Jul 1, 2015
jmolivas added a commit that referenced this pull request Jul 2, 2015
Remove deprecated default_value key from entity_value
@jmolivas jmolivas merged commit e9fbfbc into hechoendrupal:master Jul 2, 2015
@jmolivas
Copy link
Copy Markdown
Member

jmolivas commented Jul 2, 2015

Thanks for the PR @artfulrobot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants