function _hashtags_field_remove_term in Hashtags 8
Helper function that remove a term from the taxonomy terms hashtags field
Parameters
$field:
$tid:
string $vid:
File
- ./
hashtags.module, line 263
Code
function _hashtags_field_remove_term($field, $tid) {
$hashtags = $field
->getValue();
$key = _hashtags_get_tt_key($hashtags, $tid);
unset($hashtags[$key]);
$field
->setValue($hashtags);
}