summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy/taxonomy.api.php')
-rw-r--r--modules/taxonomy/taxonomy.api.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.api.php b/modules/taxonomy/taxonomy.api.php
index 31aa2de52..c66ccdfb1 100644
--- a/modules/taxonomy/taxonomy.api.php
+++ b/modules/taxonomy/taxonomy.api.php
@@ -95,6 +95,19 @@ function hook_taxonomy_term_load($terms) {
}
/**
+ * Act on taxonomy terms before they are saved.
+ *
+ * Modules implementing this hook can act on the term object before it is
+ * inserted or updated.
+ *
+ * @param $term
+ * A term object.
+ */
+function hook_taxonomy_term_presave($term) {
+ $term->foo = 'bar';
+}
+
+/**
* Act on taxonomy terms when inserted.
*
* Modules implementing this hook can act on the term object when saved to