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.
When I deploy a feature which uses CCK and views, I need to manually update the comment settings for the content-type. I would expect all configuration for a content-type to be exported with the feature.
Since comments are part of core, should this not be the case?
Comment | File | Size | Author |
---|---|---|---|
#15 | 792472_15_node_pipe.patch | 769 bytes | scottrigby |
#11 | 792472_node_pipe.patch | 1.25 KB | yhahn |
Comments
Comment #1
Jochus CreditAttribution: Jochus commentedI'm having this problem too. Any updates on this one? I'm using the beta10
Comment #2
tim.plunkettComment settings are stored in the variable table. Try Strongarm.
Comment #3
Jochus CreditAttribution: Jochus commentedHmm, but isn't this rather complicated? Using Strongarm, I have to search for the fields/settings of a content type I want to "versionize" ... I just want "Features" to work as the "export" functionality. I select "a" content type, and Features takes care of all settings ... even the settings that are added using contrib modules
Comment #4
tim.plunkettComment #5
yhahn CreditAttribution: yhahn commentedComment #6
DamienMcKennaI think this should play into the patch I just provided (#870040: Provide hook to allow modules to define what variables they own) to add & build upon a new hook_default_variables() that would let modules define the variables they provided.
Comment #7
DamienMcKennaComment #8
DamienMcKennaFYI some of this also goes back to the discussion on another ticket: #401948: Node settings change not triggering "overridden" flag
Comment #9
DamienMcKennaFrom the POV of getting Features to work with this, the node_features_export() function in features.node.inc would have to be expanded to call a Strongarm function to obtain a list of suitable variables for the given content type, rather than just using one from CCK (content_extra_weights_{$type}).
Comment #10
yhahn CreditAttribution: yhahn commentedAdds node pipe for core variables. As described by @gordon here (http://drupal.org/node/728004#comment-2858488), contrib node type variables should be implemented in pipe alters their respective modules.
Comment #11
yhahn CreditAttribution: yhahn commentedWhoops, actually attaching patch.
Comment #12
yhahn CreditAttribution: yhahn commentedhttp://drupal.org/cvs?commit=402796
Comment #14
Jochus CreditAttribution: Jochus commentedI repeat one of my previous replies:
<<
Hmm, but isn't this rather complicated? Using Strongarm, I have to search for the fields/settings of a content type I want to "versionize" ... I just want "Features" to work as the "export" functionality. I select "a" content type, and Features takes care of all settings ... even the settings that are added using contrib modules
>>
So, if I want to export the "Workflow settings", I have to install Strongarm and Ctools. So, to control my "Content Type", I have to use 3 contrib modules: Features, Strongarm AND CTools.
The "export" functionality does exactly what I want, but it's not easy to control it. I was hoping Features would solve this problem ...
Comment #15
scottrigbyfrom IRC :)
After drush fu MYFEATURE
Comment #16
mrfelton CreditAttribution: mrfelton commentedSame error for me - patch in #15 seems to resolve it.
Comment #17
looplog CreditAttribution: looplog commentedAlso confirming patch at #15 removes this error.
Comment #18
AlfTheCat CreditAttribution: AlfTheCat commentedAlso confirming the #15 patch is working.
Comment #19
tim.plunkettYep. Came here to file this patch, good to see scottrigby beat me to it.
Comment #20
Simon Georges CreditAttribution: Simon Georges commented#1221038: Extra argument in strongarm_features_pipe_ds_alter() contains the same patch, so I've updated the status and cross-post here so the eventual committer can kill two issues with one commit ;-)
Comment #21
barraponto CreditAttribution: barraponto commentedThis is a no-brainer. I'm happy to see it is properly closed. And I'm sad it is still present in version 2.0. Let's commit it.
Comment #22
tim.plunkettHeh.
Comment #23
gagarine CreditAttribution: gagarine commentedNobody want to commit #15?
Comment #24
hefox CreditAttribution: hefox commentedThe implementation of the hook matches a previous version of the hook, one I'm trying to get back because removing the module name prevented me from doing some fun stuff. If instead of fixing it in strongarm, we restored to the hook to what it used to be, that would fix this error also. See my issue #939254: Return the $module_name to hook_features_pipe_component_alter() to restore the hook to what it used to be.
The reason it was changed is that d7 drupal_alter doesn't allow same more than a certain amount of arguments, so instead of changing the signature to how d7 alters can add more data, the information (module name) was removed from the hook and is now implausible to access in an implementation of the hook :(
Comment #25
hefox CreditAttribution: hefox commentedGoing to mark this needs work in hopes #939254 gets addressed and this isn't needed. This should have likely been it's own bug report instead of opening an old issue as now the trying to find the issue is really confusing :O!
Comment #26
basvredelingIf this issue runs against 6.x and issue #939254 against 7.x how is work on #939254 going to solve this problem exactly?
Comment #27
hefox CreditAttribution: hefox commentedOnce something is committed to one branch, it can be ported to another. Patches like that likely outta go in 7 first.
Comment #28
psyanga CreditAttribution: psyanga commentedbookmarking this
Comment #29
kenorb CreditAttribution: kenorb commentedThe same bug.
Missing argument 4 for strongarm_features_pipe_node_alter() strongarm.module:194 [warning]
Any progress on that?
Comment #30
smokrisAccording to the 6.x-2.1 release notes, a fix for "missing argument 4" made it into 6.x-2.1.