You are here

function theme_hosting_client_form in Hosting 5

Same name and namespace in other branches
  1. 6.2 client/hosting_client.module \theme_hosting_client_form()
  2. 7.4 client/hosting_client.module \theme_hosting_client_form()
  3. 7.3 client/hosting_client.module \theme_hosting_client_form()

File

client/hosting_client.module, line 167

Code

function theme_hosting_client_form($form) {
  foreach (element_children($form['name']) as $user) {
    $row = array();
    $row['data'][] = drupal_render($form['name'][$user]);
    if (user_access('edit client users')) {
      $row['data'][] = drupal_render($form['users'][$user]);
    }
    $rows[] = $row;
  }
  $output = theme('table', $form['header']['#value'], $rows);
  $output .= drupal_render($form);
  return $output;
}