function theme_hosting_client_platform_access_form in Hosting 7.4
Same name and namespace in other branches
- 6.2 client/hosting_client.module \theme_hosting_client_platform_access_form()
- 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 833
Code
function theme_hosting_client_platform_access_form($variables) {
$form = $variables['form'];
foreach (element_children($form['names'], FALSE) as $client) {
$row = array();
$row['data'][] = $form['names'][$client]['#value'];
if ($client != '_all' && user_access('administer clients')) {
$row['data'][] = drupal_render($form['clients'][$client]);
}
else {
// Nothing to remove if there aren't any clients...
unset($form['header']['#value'][1]);
}
$rows[] = $row;
}
$output = theme('table', array(
'header' => $form['header']['#value'],
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}