I'm printing the output as described in here: How to programmatically render a node's teaser using the theme layer? in block using PHP filter.

Also I've a theme implementation file named: views-view-field--field-image.tpl.php in the custom Mobile theme directory with this content:


<?php /*print $output;*/ ?>

This is hiding all image field output but not the output of drupal_render($view).

How to hide the images in this redered output as well?

1 Answer 1


Before calling drupal_render($view) inspect the $view array. (Use devel's dmp or print_r to inspect the array.)

Find out what part of the array contains information about your images, and then unset this before calling drupal_render.


print drupal_render($view);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.