function oa_buttons_oa_core_space_type_options in Open Atrium Core 7.2
Implements hook_oa_core_space_type_options().
File
- modules/
oa_buttons/ oa_buttons.module, line 48
Code
function oa_buttons_oa_core_space_type_options($term, $vocab_name) {
$options = array(
'node_options' => array(),
);
$node_types = field_get_items('taxonomy_term', $term, 'field_oa_node_types', LANGUAGE_NONE);
if (!empty($node_types)) {
foreach ($node_types as $option) {
$options['node_options'][] = $option['value'];
}
}
return $options;
}