I'm trying to access a node variable, the id of a taxonomy term but i have to do it at the page level in theme_prepocess_page function. i did it in preprocess node like this
$libStatus = $vars['field_feature_library_status']['und']['tid'];
in preprocess_page i tried this:
$libStatus = $vars['node']['field_feature_library_status']['und']['tid'];
but i get this error... Cannot use object of type stdClass as array in….
can someone explain how i can access this node variable in theme_preprocess_page function?