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.
It has the line:
$term->vid = $vid;
but $vid is undefined.
Changed it to:
$vocabulary = taxonomy_vocabulary_machine_name_load($machine_name);
$term->vid = $vocabulary->vid;
and it works ok.
Comment | File | Size | Author |
---|---|---|---|
#3 | scald_dailymotion_taxonomy_get_create3.patch | 1.41 KB | NerOcrO |
#2 | scald_dailymotion_taxonomy_get_create2.patch | 1.25 KB | NerOcrO |
#1 | scald_dailymotion_taxonomy_get_create.patch | 1.67 KB | NerOcrO |
Comments
Comment #1
NerOcrO CreditAttribution: NerOcrO commentedLike this?
Comment #2
NerOcrO CreditAttribution: NerOcrO commentedExcuse me, wrong branch...
This patch is better!
Comment #3
NerOcrO CreditAttribution: NerOcrO commentedOnce again, a minor correction.
Comment #4
NerOcrO CreditAttribution: NerOcrO commentedComment #6
DeFr CreditAttribution: DeFr commentedPushed the latest patch in commit b59d509. Thanks all !