Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
contact.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
29 Jul 2012 at 08:31 UTC
Updated:
29 Jul 2014 at 20:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottThe new config names are based on comments by @sun and @dawehner in #1588422: Convert contact categories to configuration system
Comment #2
sunHm. I thought we'd merge this into the patch in #1496534: Convert account settings to configuration system ?
Comment #3
cosmicdreams commentedHow about default_enabled ?
If you have a reason for naming it this way that's fine. Otherwise RTBC.
Comment #4
cosmicdreams commentedAs moshe says, resist the nit-picking.
Comment #5
sunThe "user" part seems appropriate, but I don't understand why we're duplicating "contact" in the key?
@cosmicdreams: moshe's comment wasn't meant universal, but specific to the user pictures issue, which is a major monster patch that has been RTBC a couple of times already.
Comment #6
sunAlso, what's the deal with default_category? Any particular reason why that is not converted here?
If there's a strong reason for omitting it, then I think we should remove the key from the config file in this patch. Otherwise, let's just convert it here, too?
Comment #7
cosmicdreams commenteddefault_category is in the yml file, so the conversions should probably happen or the setting should also be omitted from that file.
Comment #8
alexpott@sun: I've um and ahhed about user_default_enabled vs user_contact_default_enabled... I made it user_contact_default_enabled because it is referring to the default setting for the "user contact" form which is provided by the contact module. But to be honest I'm happy either way.
re: default_category - it shouldn't be in the yml file as there is no variable for the contact form default category - currently the default category is determined by a field on the contact table.
re: #2 I made this a separate patch to make reviewing both the user contact and contact machine name patches smaller and focussed on their main aims - there will be less in both on them if we can get this in.
The patch attached removes default_category from the yml file and changes the configuration key to user_default_enabled.
Comment #9
sunThis looks great! Only one last remark:
Let's leave the original $form array key alone, here. Since the settings form is not using #tree, the submitted form value is not namespaced for contact module, which in turn makes the original form key cleaner.
Comment #10
alexpottHow about using
#treeon the$form['contact']fieldset? Afaik the only reason#treewasn't used in the first place is because the oldsystem_settings_form()did not play nice with it.Comment #11
sunSorry, nope, no such premature optimizations, please.
Comment #12
alexpottokey-dokey :)
Comment #13
aspilicious commentedLooks good to me...
Comment #14
sunAlmost done! :)
This phpDoc should be:
Comment #15
alexpottHere we go.
Comment #16
sunThanks! :)
Comment #17
dries commentedCommitted to 8.x. Thanks. Keep 'em coming.
Comment #18
alexpottWe need to add the config directory and files. Creating the "New files" tag to indicate this.
Head will be broken once it retests.
Comment #19
andypostThis part
Comment #20
aspilicious commentedComment #21
catchAdded the missing file...
(
git apply --indexftw.)