You are here

function theme_hosting_client_platform_access_form in Hosting 6.2

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

Callback to theme the client platform access form.

File

client/hosting_client.module, line 680

Code

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