You are here

function termstatus_publish_action in Taxonomy Term Status 7

Action callback: publish a term.

File

./termstatus.module, line 274
Hook implementations and API for the taxonomy term status module.

Code

function termstatus_publish_action($term, $context = array()) {
  $term->status = 1;
  watchdog('action', 'Set taxonomy term %title to published.', array(
    '%title' => $term->name,
  ));
}