Return to Snippet

Revision: 26534
at April 30, 2010 06:51 by jmaties


Initial Code
<?php
$view = views_get_view('Propiedades');
$view->set_arguments(array($row->nid)); // optional
$view->set_display('block_2');
$view->pre_execute();
$view->execute();
$count = count($view->result);
$viviendas= format_plural($count, '1 vivienda', '@count viviendas');
if ($count>=1) { ?>

Initial URL

                                

Initial Description

                                

Initial Title
Resultados de una view

Initial Tags
drupal

Initial Language
PHP