| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: og_vocab.rules.inc,v 1.1.2.1 2008/12/24 15:16:07 amitaibu Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 51 |
* Action: Assign vocabulary to group. |
* Action: Assign vocabulary to group. |
| 52 |
*/ |
*/ |
| 53 |
function og_vocab_rules_action_assign_vocab($node, $vocab, $settings) { |
function og_vocab_rules_action_assign_vocab($node, $vocab, $settings) { |
| 54 |
og_vocab_write_record($node->nid, $vocab['vid']); |
og_vocab_write_record($node->nid, $vocab->vid); |
| 55 |
} |
} |
| 56 |
|
|
| 57 |
/** |
/** |
| 58 |
* Action: Remove vocabulary from group. |
* Action: Remove vocabulary from group. |
| 59 |
*/ |
*/ |
| 60 |
function og_vocab_rules_action_remove_vocab($vocab, $settings) { |
function og_vocab_rules_action_remove_vocab($vocab, $settings) { |
| 61 |
og_vocab_remove_record($vocab['vid']); |
og_vocab_remove_record($vocab->vid); |
| 62 |
} |
} |
| 63 |
|
|
| 64 |
/** |
/** |