Return to Snippet

Revision: 26954
at November 23, 2011 06:53 by jmaties


Updated Code
<?php
// Drupal 7
$block = block_load('views', 'productos-block_3');     
$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));       
print $output; 

//

$block = module_invoke('views', 'block_view', 'blog-block');
print render($block); 

?>

<?php
   print '<div class="block_inter">';
/*otro
$block = module_invoke('block' ,'block', 'view', 2)
   $block = module_invoke('views', 'block', 'view', 'explore_menu-block_1');
*/
$block = module_invoke('simplenews' ,'block','view', 1);
   print '<h2>' . $block['subject'] . '</h2>';
   print $block['content'];
   print '</div>';

//OR

 print views_embed_view('mapa', 'block_2',$node->field_promocion[0]['nid']);
?>

Revision: 26953
at April 12, 2011 21:06 by jmaties


Updated Code
<?php
// Drupal 7

$block = module_invoke('views', 'block_view', 'blog-block');
print render($block); 

?>

<?php
   print '<div class="block_inter">';
/*otro
$block = module_invoke('block' ,'block', 'view', 2)
   $block = module_invoke('views', 'block', 'view', 'explore_menu-block_1');
*/
$block = module_invoke('simplenews' ,'block','view', 1);
   print '<h2>' . $block['subject'] . '</h2>';
   print $block['content'];
   print '</div>';

//OR

 print views_embed_view('mapa', 'block_2',$node->field_promocion[0]['nid']);
?>

Revision: 26952
at July 23, 2010 16:56 by jmaties


Updated Code
<?php
   print '<div class="block_inter">';
/*otro
$block = module_invoke('block' ,'block', 'view', 2)
   $block = module_invoke('views', 'block', 'view', 'explore_menu-block_1');
*/
$block = module_invoke('simplenews' ,'block','view', 1);
   print '<h2>' . $block['subject'] . '</h2>';
   print $block['content'];
   print '</div>';

//OR

 print views_embed_view('mapa', 'block_2',$node->field_promocion[0]['nid']);
?>

Revision: 26951
at July 22, 2010 05:27 by jmaties


Updated Code
<?php
   print '<div class="block block-views inner-content-block-1">';
/*otro
$block = module_invoke('block' ,'block', 'view', 2)
   $block = module_invoke('views', 'block', 'view', 'explore_menu-block_1');
*/
$block = module_invoke('simplenews' ,'block','view', 1);
   print '<h2>' . $block['subject'] . '</h2>';
   print $block['content'];
   print '</div>';

//OR

 print views_embed_view('mapa', 'block_2',$node->field_promocion[0]['nid']);
?>

Revision: 26950
at July 7, 2010 09:29 by jmaties


Updated Code
<?php
   print '<div class="block block-views inner-content-block-1">';
/*otro
$block = module_invoke('block' ,'block', 'view', 2)
   $block = module_invoke('views', 'block', 'view', 'explore_menu-block_1');
*/
$block = module_invoke('simplenews' ,'block','view', 1);
   print '<h2>' . $block['subject'] . '</h2>';
   print $block['content'];
   print '</div>';
?>

Revision: 26949
at May 17, 2010 11:10 by jmaties


Initial Code
<?php
   print '<div class="block block-views inner-content-block-1">';
/*otro
$block = module_invoke('block' ,'block', 'view', 2)
*/
   $block = module_invoke('views', 'block', 'view', 'explore_menu-block_1');
   print '<h2>' . $block['subject'] . '</h2>';
   print $block['content'];
   print '</div>';
?>

Initial URL

                                

Initial Description
Actualizado D7

Initial Title
Insertar Bloque

Initial Tags
drupal

Initial Language
PHP