function spaces_taxonomy_spaces_get_space_from_object in Spaces 7.3
Implements hook_spaces_get_space_from_object().
File
- spaces_taxonomy/
spaces_taxonomy.module, line 76 - spaces_taxonomy.module
Code
function spaces_taxonomy_spaces_get_space_from_object($type, $object) {
if ($type == 'node') {
if ($term = spaces_taxonomy_get_term($object)) {
return spaces_load('taxonomy', $term->tid);
}
}
}