summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.api.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-24 22:21:51 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-24 22:21:51 +0000
commit0e68871da85154d9d35c64771361b8f157870a62 (patch)
tree823459b6add3844aa757f1fd0b643c7a64d91621 /modules/taxonomy/taxonomy.api.php
parent0a5d9dd354c659a3e5992c0acacebe300a4d3654 (diff)
downloadbrdo-0e68871da85154d9d35c64771361b8f157870a62.tar.gz
brdo-0e68871da85154d9d35c64771361b8f157870a62.tar.bz2
#835046 by mikeytown2: Fixed hook_taxonomy_vocabulary_presave() is missing.
Diffstat (limited to 'modules/taxonomy/taxonomy.api.php')
-rw-r--r--modules/taxonomy/taxonomy.api.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.api.php b/modules/taxonomy/taxonomy.api.php
index c66ccdfb1..6ceab8f80 100644
--- a/modules/taxonomy/taxonomy.api.php
+++ b/modules/taxonomy/taxonomy.api.php
@@ -26,6 +26,20 @@ function hook_taxonomy_vocabulary_load($vocabularies) {
}
}
+
+/**
+ * Act on taxonomy vocabularies before they are saved.
+ *
+ * Modules implementing this hook can act on the vocabulary object before it is
+ * inserted or updated.
+ *
+ * @param $vocabulary
+ * A taxonomy vocabulary object.
+ */
+function hook_taxonomy_vocabulary_presave($vocabulary) {
+ $vocabulary->foo = 'bar';
+}
+
/**
* Act on taxonomy vocabularies when inserted.
*