Created
February 1, 2012 21:30
-
-
Save dergachev/1719580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mymodule_menu_callback() { | |
$rows = array( | |
array('Suzanne', 'Front End Dev'), | |
array('Alex', 'Front End Dev'), | |
array('Tavish', 'Captain Intern'), | |
array('Thomas', 'Hand-stand master'), | |
); | |
//asks Drupal to render this as a table | |
return array( | |
'#theme' => 'table', | |
'#header' => array('Name', 'Role'), | |
'#rows' => $rows, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment