Pur inserendo un pulsante non viene richiamata la funzione
Ci sono moduli che hanno una tabella con i pulsanti ? x capire che cocice usato
<?php
function mymodule_test($user) {
$header = array(
array('data' => t('user')),
array('data' => t('x')),
array('data' => t('botton')),
);
$rows = array();
$sql = "...";
$count_sql = "...";
$sql .= tablesort_sql($header);
$result = pager_query($sql, 10, 0, $count_sql, $user->uid);
while ($order = db_fetch_object($result)) {
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('send'),
'#submit' => array('funct_submit'),
);
$rows[] = array(
array('data' => $user ),
array('data' => $x ),
array('data' =>drupal_render($form['submit']) )
);
}
return theme('table', $header, $rows, array('class' => 'hire')). theme('pager', NULL, 20, 0);
}
?>
Secondo me devi usare jQuery per far si che quando il bottone viene premuto si instauri il submit dei dati via get/post, altrimenti come lo vuoi fare tu è inusabile.
M.
--
Michel 'ZioBudda' Morelli -- [email protected]
Sviluppo applicazioni CMS DRUPAL e web dinamiche -- Corsi Drupal -- Amministrazione Drupal -- Hosting Drupal