function content_copy_deploy in Deploy - Content Staging 5
Same name and namespace in other branches
- 6 modules/content_copy_deploy/content_copy_deploy.module \content_copy_deploy()
deploy content deployment 'hook'
File
- content_copy_deploy/
content_copy_deploy.module, line 106
Code
function content_copy_deploy($url, $api_key, $content_type) {
$groups = array();
if (module_exists('fieldgroup')) {
$groups = content_copy_groups($content_type);
}
$fields = content_copy_fields($content_type);
$fields = array_keys($fields);
$values = array(
'type_name' => $content_type,
'groups' => $groups,
'fields' => $fields,
);
$export = content_copy_export('content_copy_export_form', $values);
return xmlrpc($url, 'content_copy.import', $api_key, $content_type, $export);
}