You are here

function defaultcontent_export_node in Default Content 7

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

This function turns a node in to code that can be used in a hook_defaultcontents

1 call to defaultcontent_export_node()
content_features_export_render in ./defaultcontent.features.inc
Implements hook_features_export_render().

File

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

Code

function defaultcontent_export_node($node) {
  $node = defaultcontent_export_node_process($node);
  return '(object) ' . features_var_export($node, '  ');
}