In Drupal 7, I'm tying to show all the taxonomy terms from a specific vocabulary linked to the current node being viewed. I'm doing this with a new block defined in my module.
I added a field called tags in my contenttype and gave this field the whole taxanomy behavior. This made it possible to get the terms with:
$node = menu_get_object();
$node->field_tags <- array of tags to use
But, here comes the problem, this field is only there when it's set to visible in admin/structure/types/manage/page/display . But when i do that it also becomes visible in the content. If i put it to hidden it does not only get removed in the content/node view, but it's also gone from the whole $node object.
It there a way of getting the fields from the current node that are set to hidden?
Thanks, Jonathan