X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Ftaxonomy_vocabulary_insert.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Ftaxonomy_vocabulary_insert.twig;h=4f04b98a5d37a0b4f90d60812d537242fd379ab5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_insert.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_insert.twig new file mode 100644 index 000000000..4f04b98a5 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_insert.twig @@ -0,0 +1,8 @@ +/** + * Implements hook_taxonomy_vocabulary_insert(). + */ +function {{ machine_name }}_taxonomy_vocabulary_insert($vocabulary) { + if ($vocabulary->machine_name == 'my_vocabulary') { + $vocabulary->weight = 100; + } +}