function theme_hosting_quota_client in Hostmaster (Aegir) 6
Theme the client quota information.
Parameters
$node: The client node object being themed.
1 theme call to theme_hosting_quota_client()
- hosting_quota_nodeapi in modules/
hosting/ quota/ hosting_quota.module - Implements hook_nodeapi().
File
- modules/
hosting/ quota/ hosting_quota.module, line 407 - Implement quota's for the resource used by client.
Code
function theme_hosting_quota_client($node) {
if (!empty($node->quota)) {
$header = array(
t('Resource'),
t('Used'),
t('Quota'),
);
foreach ($node->quota as $resource => $value) {
$row = array();
$row[] = $value['title'];
$row[] = $value['rendered usage'];
$row[] = $value['rendered limit'];
$rows[] = $row;
}
return theme('table', $header, $rows);
}
return '';
}