taxonomy_tools_publisher.api.php in Taxonomy Tools 8
Same filename and directory in other branches
Hooks provided by the Taxonomy Tools Publisher module.
File
taxonomy_tools_publisher/taxonomy_tools_publisher.api.phpView source
<?php
/**
* @file
* Hooks provided by the Taxonomy Tools Publisher module.
*/
/**
* Act on scheduled term publishing.
*/
function hook_taxonomy_tools_publisher_terms_publish() {
drupal_set_message('Scheduled term publishing completed.');
}
/**
* Act on scheduled term unpublishing.
*/
function hook_taxonomy_tools_publisher_terms_unpublish() {
drupal_set_message('Scheduled term unpublishing completed.');
}
/**
* Act on term publishing.
*
* @param stdClass $term
* Taxonomy term object.
*/
function hook_taxonomy_tools_publisher_term_publish($term) {
drupal_set_message($term->name);
}
/**
* Act on term unpublishing.
*
* @param stdClass $term
* Taxonomy term object.
*/
function hook_taxonomy_tools_publisher_term_unpublish($term) {
drupal_set_message($term->name);
}
Functions
Name![]() |
Description |
---|---|
hook_taxonomy_tools_publisher_terms_publish | Act on scheduled term publishing. |
hook_taxonomy_tools_publisher_terms_unpublish | Act on scheduled term unpublishing. |
hook_taxonomy_tools_publisher_term_publish | Act on term publishing. |
hook_taxonomy_tools_publisher_term_unpublish | Act on term unpublishing. |