module hook_user
safya83 - September 25, 2009 - 15:26
Hello
i wanted to add some user information
So i created a new module and add the module_user() function
i found the drupal_set_message function .it works but i want my output as content not as message.
Any help?
Here is my code
<?php
function module_user($op, &$edit, &$account, $category = NULL){
if ($op == 'view') {
$output="<table class=data><th>data1</th><th>data2</th><th>data3</th>";
foreach ($trans as $mv){
$output=$output."<tr>";
$output=$output."<td>".$mv[0]."</td>"."<td>".$mv[1]."</td>"."<td>".$mv[2]."</td>";
$output=$output."</tr>";
}
$output = $output."</table>";
drupal_set_message($output);
}
}
?>it s ok i found it
<?php
$account->content[$category]['module']
?>