function hosting_client_load in Hosting 7.4
Same name and namespace in other branches
- 5 client/hosting_client.module \hosting_client_load()
- 6.2 client/hosting_client.module \hosting_client_load()
- 7.3 client/hosting_client.module \hosting_client_load()
Implements hook_load().
File
- client/
hosting_client.module, line 603
Code
function hosting_client_load($nodes) {
foreach ($nodes as $nid => &$node) {
$additions = db_query('SELECT uname FROM {hosting_client} WHERE vid = :vid', array(
':vid' => $node->vid,
))
->fetch();
foreach ($additions as $property => &$value) {
$node->{$property} = $value;
}
}
}