Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function theme_freeway_dashboard($form) {
- $rows = array();
- foreach (element_children($form) as $key) {
- $row = array();
- if (isset($form[$key]['projectID'])) {
- $status = drupal_render($form['featured'][$key]);
- $row[] = array('data' => $status, 'class' => 'checkbox');
- $row[] = ''. drupal_render($form[$key]['projectID']) .'';
- //$row[] = ''.'' l(t(drupal_render($form[$key]['projectID'])),$url,array ('attributes' => array('target' => '_blank')));''.'';
- $row[] = array('data' => drupal_render($form[$key]['projectDesc']));
- $rows[] = $row;
- l(t('Title'),$url, array('attributes' => array('target' => '_blank')));
- }
- }
- $header = array();
- $header[] = array('data' => t('Featured'), 'class' => 'checkbox');
- $header[] = t('Project ID');
- $header[] = t('Project Description');
- $output = theme('table', $header, $rows,array('size'=>10, 'class' => 'table_class'));
- $output .= drupal_render($form);
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement