You are here

function pmticket_load in Drupal PM (Project Management) 7

Implements hook_load().

File

pmticket/pmticket.module, line 648
1: Hooks 2: Access functions

Code

function pmticket_load($nodes) {
  foreach ($nodes as $nid => &$node) {
    $result = db_select('pmticket', 'sti')
      ->fields('sti')
      ->condition('vid', $node->vid)
      ->execute();
    $record = $result
      ->fetchAssoc();
    foreach ($record as $key => $value) {
      $node->{$key} = $value;
    }
    $node->title_old = $node->title;
  }
}