function featured_content_get_vocabulary_terms in Featured Content 6
Same name and namespace in other branches
- 6.2 featured_content.module \featured_content_get_vocabulary_terms()
- 7.2 featured_content.module \featured_content_get_vocabulary_terms()
- 7 featured_content.module \featured_content_get_vocabulary_terms()
Gets the enabled vocabulary terms.
3 calls to featured_content_get_vocabulary_terms()
- featured_content_configure in ./
featured_content.admin.inc - Returns 'configure' info for hook_block(). This is the featured block form.
- featured_content_get_filtered_nids in ./
featured_content.module - Get filtered node nids. Filter base on content types, users (authors) and taxonomy terms.
- featured_content_save in ./
featured_content.admin.inc - Returns the 'save' $op info for hook_block().
File
- ./
featured_content.module, line 519 - Featured Content module for created related & featured content blocks.
Code
function featured_content_get_vocabulary_terms($vocabulary) {
if ($vocabulary->vid) {
$terms = array();
foreach (taxonomy_get_tree($vocabulary->vid) as $term) {
$terms[$term->tid] = check_plain($term->name);
}
$current_key = 'CURRENT-' . $vocabulary->vid;
$terms = array(
$current_key => t('Use the @vocab_name terms of the page being shown.', array(
'@vocab_name' => $vocabulary->name,
)),
) + $terms;
return $terms;
}
}