function theme_hosting_client_user_form in Hostmaster (Aegir) 6
Returns HTML for the client area on the user form.
File
- modules/
hosting/ client/ hosting_client.access.inc, line 106 - Control client node access.
Code
function theme_hosting_client_user_form($form) {
if (array_key_exists('hosting_client', $form)) {
$edit_name = drupal_render($form['hosting_client']);
}
else {
$edit_name = '';
}
foreach (element_children($form['name']) as $client) {
$row = array();
$row['data'][] = drupal_render($form['name'][$client]);
if (user_access('edit client users')) {
$row['data'][] = drupal_render($form['clients'][$client]);
}
$rows[] = $row;
}
$output = drupal_render($form);
$output .= theme('table', $form['header']['#value'], $rows);
$output .= $edit_name;
return $output;
}