function theme_hosting_quota_client in Hosting 6.2
Same name and namespace in other branches
- 7.4 quota/hosting_quota.module \theme_hosting_quota_client()
- 7.3 quota/hosting_quota.module \theme_hosting_quota_client()
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 quota/
hosting_quota.module - Implements hook_nodeapi().
File
- 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 '';
}