Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / taxonomy_vocabulary_update.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_update.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/taxonomy_vocabulary_update.twig
new file mode 100644 (file)
index 0000000..97c2c51
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * Implements hook_taxonomy_vocabulary_update().
+ */
+function {{ machine_name }}_taxonomy_vocabulary_update($vocabulary) {
+  db_update('mytable')
+    ->fields(array('foo' => $vocabulary->foo))
+    ->condition('vid', $vocabulary->vid)
+    ->execute();
+}