Posted By

tgbdad on 06/11/08


drupal phptemplate views

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Ugly Template Hack to display contents of a view

 / Published in: PHP

This is a quick and dirty hack to display the contents of a view at the top of a page. I got some ideas for this from

  1. <body>
  2. <!-- substitute the view name you're trying to debug -->
  3. <?php $view = views_get_view('audio'); ?>
  4. <pre><?php print_r($view) ?></pre>

Report this snippet  

You need to login to post a comment.