function defaultcontent_export_node_process in Default Content 7
Same name and namespace in other branches
- 7.2 defaultcontent.module \defaultcontent_export_node_process()
Produces an export object form a node object
3 calls to defaultcontent_export_node_process()
- content_features_revert in ./
defaultcontent.features.inc - Implements hook_features_revert().
- defaultcontent_export_node in ./
defaultcontent.module - This function turns a node in to code that can be used in a hook_defaultcontents
- defaultcontent_remove_default_content in ./
defaultcontent.module
File
- ./
defaultcontent.module, line 273 - Module file for the Default content module which allow export and import of default content in a Drupal site.
Code
function defaultcontent_export_node_process($node) {
$plugins = defaultcontent_get_alter_plugins('export_alter');
$export = (object) array();
foreach ($plugins as $plugin) {
$cb = isset($plugin['export_alter callback']) ? $plugin['export_alter callback'] : $plugin['name'] . '_export_alter';
if (function_exists($cb)) {
$cb($node, $export);
}
}
return $export;
}