You are here

function defaultcontent_node_load in Default Content 7

Same name and namespace in other branches
  1. 7.2 defaultcontent.module \defaultcontent_node_load()

Implements hook_node_load().

Add machine_name

File

./defaultcontent.module, line 14
Module file for the Default content module which allow export and import of default content in a Drupal site.

Code

function defaultcontent_node_load($nodes, $types) {
  foreach ($nodes as $key => $node) {
    $nodes[$key]->machine_name = defaultcontent_get_default($node->nid);
  }
}