Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
9
vendor/chi-teck/drupal-code-generator/templates/d7/hook/load.twig
vendored
Normal file
9
vendor/chi-teck/drupal-code-generator/templates/d7/hook/load.twig
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* Implements hook_load().
|
||||
*/
|
||||
function {{ machine_name }}_load($nodes) {
|
||||
$result = db_query('SELECT nid, foo FROM {mytable} WHERE nid IN (:nids)', array(':nids' => array_keys($nodes)));
|
||||
foreach ($result as $record) {
|
||||
$nodes[$record->nid]->foo = $record->foo;
|
||||
}
|
||||
}
|
||||
Reference in a new issue