diff --git a/spaces_taxonomy/spaces_taxonomy.module b/spaces_taxonomy/spaces_taxonomy.module
index 9769f8f..9f7b39d 100644
--- a/spaces_taxonomy/spaces_taxonomy.module
+++ b/spaces_taxonomy/spaces_taxonomy.module
@@ -71,6 +71,21 @@ function spaces_taxonomy_spaces_registry() {
 }
 
 /**
+ * Implements of hook_spaces_get_space_from_object().
+ */
+function spaces_taxonomy_spaces_get_space_from_object($type, $object) {
+  if ($type == 'node') {
+    $vocab = variable_get('spaces_taxonomy_machine_name', 0);
+    $fields = field_info_fields();
+    foreach ($fields as $name => $field) {
+      if ($field['type'] == 'taxonomy_term_reference' && $vocab == $field['settings']['allowed_values'][0]['vocabulary']) {
+        return spaces_load('taxonomy', $object->nid);
+      }
+    }
+  }
+}
+
+/**
  * Implements hook_menu().
  */
 function spaces_taxonomy_menu() {
