I have created a View page, and added a "Global:PHP" field to embed a View block from another View using the following code:
<?php print views_embed_view('VIEW_NAME','VIEW_BLOCK_NAME', $data->tid);?>
Now, it worked perfectly, but there's no detail or variables I can find in the print_r($data)/dsm($data) about this View block's content.
My purpose is that, if there's no result in view block, then I will hide a particular custom field. In short, "if views_embed_view() return empty then hide field A
Wondering how to go about it. Please advise. Thanks!