function twit_submit_block_taxonomy_add in Heartbeat 8
Add new hashtag to taxonomy as hashtag vocabulary type
1 call to twit_submit_block_taxonomy_add()
- twit_submit_block_taxonomy_check in modules/
statusmessage/ includes/ twit.php - Check to see if hashtag is already in taxonomy before adding
File
- modules/
statusmessage/ includes/ twit.php, line 21
Code
function twit_submit_block_taxonomy_add($term) {
$taxTerm = new stdClass();
$taxTerm->name = $term;
$taxTerm->vid = 6;
taxonomy_term_save($taxTerm);
return $taxTerm->tid;
}