Advertisement
DrupalCustom

theme

Jan 13th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1.    
  2. function theme_freeway_dashboard($form) {
  3.  
  4.         $rows = array();
  5.         foreach (element_children($form) as $key) {
  6.         $row = array();
  7.             if (isset($form[$key]['projectID'])) {
  8.                 $status = drupal_render($form['featured'][$key]);
  9.                 $row[] = array('data' => $status, 'class' => 'checkbox');
  10.                 $row[] = ''. drupal_render($form[$key]['projectID']) .'';
  11.                 //$row[] = ''.'' l(t(drupal_render($form[$key]['projectID'])),$url,array ('attributes' => array('target' => '_blank')));''.'';
  12.                 $row[] = array('data' => drupal_render($form[$key]['projectDesc']));
  13.                 $rows[] = $row;
  14.  
  15.                 l(t('Title'),$url, array('attributes' => array('target' => '_blank')));
  16.         }
  17.  
  18.     }
  19.    
  20.    
  21.     $header = array();
  22.     $header[] = array('data' => t('Featured'), 'class' => 'checkbox');
  23.     $header[] = t('Project ID');
  24.     $header[] = t('Project Description');
  25.    
  26.     $output = theme('table', $header, $rows,array('size'=>10, 'class' => 'table_class'));
  27.  
  28.     $output .= drupal_render($form);
  29.      
  30.    
  31. return $output;
  32.  
  33.    
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement