You are here

function hosting_package_load in Hosting 7.3

Same name and namespace in other branches
  1. 5 package/hosting_package.module \hosting_package_load()
  2. 6.2 package/hosting_package.module \hosting_package_load()
  3. 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;
    }
  }
}