You are here

function defaultcontent_id in Default Content 8

make a unique machine for the node will use the path alias, otherwise node_1

File

./defaultcontent.module, line 69

Code

function defaultcontent_id($node) {
  return preg_replace('/[^a-z0-9_]+/', '_', $node
    ->language()
    ->getId() . '-' . strtolower($node
    ->url()));
}