Override the #default_value in form

Created on 26 July 2013, almost 12 years ago
Updated 2 May 2025, 2 months ago

In my module defined the hook_domain_conf(), that add my own fields to settings page. I used text_format field in my form. This kind of field has two properties in the values a value and format. I try to set the default_value but every time it was override. I found that, the api override it in domain_conf_api() because the function doesn't investigate that, the default_value is set or not. I think the easiest way, that we investigate that, the default_value is set or not and if it is set, then not override it.

πŸ’¬ Support request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary segi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

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