function hosting_package_load in Hosting 7.3
Same name and namespace in other branches
- 5 package/hosting_package.module \hosting_package_load()
- 6.2 package/hosting_package.module \hosting_package_load()
- 7.4 package/hosting_package.module \hosting_package_load()
Implements hook_load().
File
- package/
hosting_package.module, line 331 - Defines package node types
Code
function hosting_package_load($nodes) {
foreach ($nodes as $nid => &$node) {
$additions = db_query('SELECT package_type, short_name, old_short_name, description FROM {hosting_package} WHERE vid = :vid', array(
':vid' => $node->vid,
))
->fetch();
foreach ($additions as $property => &$value) {
$node->{$property} = $value;
}
}
}