You are here

function rules_action_taxonomy_term_remove_from_content in Rules 6

Action: Remove a term from content.

Related topics

File

rules/modules/taxonomy.rules.inc, line 202
Rules integration for the taxonomy module.

Code

function rules_action_taxonomy_term_remove_from_content($node, $taxonomy_term, $settings) {
  if (isset($node->taxonomy[$taxonomy_term->tid])) {
    unset($node->taxonomy[$taxonomy_term->tid]);
    return array(
      'node' => $node,
    );
  }
}