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.
I added functionality to transfer the settings of module metatag with features. If you decide to add the patch, please specify me as author of a commit.
Thank you for your module.
Comment | File | Size | Author |
---|---|---|---|
#20 | metatag-n1818300-19.patch | 2.96 KB | DamienMcKenna |
#17 | metatag-n1818300-17.patch | 2.96 KB | DamienMcKenna |
#13 | metatag-n1818300-13.patch | 2.9 KB | DamienMcKenna |
#12 | metatag-n1818300-12.patch | 0 bytes | DamienMcKenna |
#10 | metatag-export-config-through-features-1818300.patch | 2.6 KB | eugene.ilyin |
Comments
Comment #1
eugene.ilyin CreditAttribution: eugene.ilyin commentedPatch
Comment #3
eugene.ilyin CreditAttribution: eugene.ilyin commentedhm validation error... try again. This patch should works good.
Comment #4
DamienMcKennaComment #6
eugene.ilyin CreditAttribution: eugene.ilyin commentedIt seems that the problem was related to the addition of a new file in the patch. Strange that it did not work. This patch should work fine. I checked that it is correctly applied in my IDE (Netbeans).
Comment #8
eugene.ilyin CreditAttribution: eugene.ilyin commentedI do not know why the patch is not applied. In my IDE (NetBeans) it is correctly applied to module version 7.x-alpha-8. What do I do?
Comment #9
eugene.ilyin CreditAttribution: eugene.ilyin commentedComment #10
eugene.ilyin CreditAttribution: eugene.ilyin commentedMaybe problem in paths...
Comment #11
eugene.ilyin CreditAttribution: eugene.ilyin commentedPhew, that was more difficult than writing the code for the patch :)
Please do not forget to mention me as the author of a commit.
Comment #12
DamienMcKennaIt should work if the hooks are separated into another file.
Comment #13
DamienMcKennaThis will work better than the file in #12 X-) So apparently in hook_features_api you have to use drupal_get_path('module', 'metatag') rather than using dirname(__FILE__) in order for the hooks to properly work. I also renamed some of the values to 'metatag' instead of 'metatags' as the module's name is specifically "metatag".
Comment #14
DamienMcKennaMy initial testing:
Comment #15
eugene.ilyin CreditAttribution: eugene.ilyin commentedWhich dependencies you mean?
Comment #16
DamienMcKennaMetatag should be listed as a dependency, i.e.:
Comment #17
DamienMcKennaThis adds the dependencies[] line.
Comment #18
eugene.ilyin CreditAttribution: eugene.ilyin commentedAre you sure that this must be do in a foreach? I think what better if we add this dependencies key just once.
Comment #19
eugene.ilyin CreditAttribution: eugene.ilyin commentedComment #20
DamienMcKennaValid point.
Comment #21
eugene.ilyin CreditAttribution: eugene.ilyin commentedNow this patch is ready to be added into module?
Comment #22
DamienMcKennaI need to test how well the settings are imported :) I'll try it later today.
Comment #23
eugene.ilyin CreditAttribution: eugene.ilyin commentedok, thx. Make patches is important for my work :)
Comment #24
DamienMcKennaI tested it out and it appeared to work really well with a snapshot of Features from late August - good work, thanks! This has been committed!
Comment #25
eugene.ilyin CreditAttribution: eugene.ilyin commentedthank you! :)
Comment #26
DamienMcKennaThis has been released in 1.0-beta2: http://drupal.org/node/1826908
Comment #26.0
DamienMcKennaedit text