You are here

function hosting_quota_node_load in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 quota/hosting_quota.module \hosting_quota_node_load()

Implements hook_node_load().

File

quota/hosting_quota.module, line 329
Implement quota's for the resource used by client.

Code

function hosting_quota_node_load($nodes, $types) {
  if (in_array('client', $types)) {
    foreach ($nodes as $nid => $node) {
      if ($node->type == 'client') {
        $nodes[$nid]->quota = hosting_quota_get_all_info($node->nid);
      }
    }
  }
}