Advertisement
DrupalCustom

themetest

Jan 16th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. function theme_freeway_user_mapping_non_global($form) {
  2.     GLOBAL $user;  
  3.     /*
  4.     $rows = array();
  5.         foreach (element_children($form) as $key) {
  6.             $row = array();    
  7.             $row[] = array('data' => drupal_render($form[$key]['data']));
  8.             $rows[] = $row;
  9.         }
  10.     */ 
  11.     $rows = array();
  12.          foreach ($form[$key]['data'] as $username) {
  13.          $row = array();   
  14.          $row[] = $username;
  15.          $rows[] = $row;
  16.             }
  17.        
  18.    
  19. // Now you can use the usernames.  
  20.     $header = array();
  21.     $header[] = t('Drupal UserName');
  22.     //$header[] = t('Freeway UserName');
  23.     //$header[] = t('Freeway Password');
  24.    
  25.     $output = theme('table', $header, $rows);
  26.     $output .= drupal_render($form);
  27.      
  28.             return $output;
  29.    
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement