function _get_tids in Simplenews Content Selection 6.2
1 call to _get_tids()
- scs_addon_default_audience_scs_addon_settings in contrib/
scs_addon_default_audience/ scs_addon_default_audience.module - Implements hook_scs_addon_settings()
File
- contrib/
scs_addon_default_audience/ scs_addon_default_audience.module, line 33 - Adds the possibility to add a default audience to the created newsletter
Code
function _get_tids($vid) {
$result = taxonomy_get_tree($vid);
$options = array();
$options[0] = t('Select default taxonomy');
foreach ($result as $key => $obj) {
$options[$obj->tid] = $obj->name;
}
return $options;
}