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 noticed that after i exported the variable 'notifications_tags_vocabularies' into features it's like this in code:
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'notifications_tags_vocabularies';
$strongarm->value = array(
2 => '2',
3 => 0,
4 => 0,
5 => 0,
6 => 0,
7 => 0,
1 => 0,
);
$export['notifications_tags_vocabularies'] = $strongarm;
The vocabulary's vid is used rather than the machine name. I think it would be better to use the vocabulary machine name. As the vid will change after the site reinstalled.
Comment | File | Size | Author |
---|---|---|---|
#2 | notifications_tags-use_vocabulary_machine_name-1870148-2.patch | 2.46 KB | kurtzhong |
#1 | notifications_tags-use_vocabulary_machine_name-1870148-1.patch | 2.38 KB | kurtzhong |
Comments
Comment #1
kurtzhong CreditAttribution: kurtzhong commentedA patch, now the exported variable looks like this:
Comment #2
kurtzhong CreditAttribution: kurtzhong commentedFix an error when no vocabulary selected.
Comment #3
DamienMcKenna