theme table de drupal

Muestra como se usa el theme table de drupal
<?php
//$header=array('primero', 'seguro');
$header= array(array('data'=>'primero','width'=>'200px'),array('data'=>'segundo','width'=>'600px'));
$rows[]= array(array('data'=>'1','align'=>'center'),array('data'=>'2','align'=>'right'));
$rows[]= array(array('data'=>'3','align'=>'left'),array('data'=>'2','align'=>'right'));
 
print theme('table',$header, $rows, $attributes = array(), $caption = NULL);
 
?>

Enviar un comentario nuevo

El contenido de este campo se mantiene como privado y no se muestra públicamente.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Saltos automáticos de líneas y de párrafos.

Más información sobre opciones de formato

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.