function hook_oa_core_space_type_options_alter in Open Atrium Core 7.2
Alter the space_type or section_type options from other modules.
Parameters
array &$optionts: An associative array keyed by the Taxonomy term id containing the option data returned by all module via hook_oa_core_space_type_options().
string $vocab_name: The name of the vocabulary that this Taxonomy term comes from.
Related topics
1 invocation of hook_oa_core_space_type_options_alter()
- oa_core_get_space_type_options in ./
oa_core.module - Gets all the options for space_type or section_type.
File
- ./
oa_core.api.php, line 47 - Contains documentation about the Open Atrium Core module's hooks.
Code
function hook_oa_core_space_type_options_alter(&$options, $vocab_name) {
if ($vocab_name == 'space_type') {
foreach ($options as $tid => &$option) {
$term = taxonomy_term_load($tid);
// Modify some data on the option data.
$option['blah'] = 'arbitrary string';
}
}
}