function content_copy_get_macro in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 5 content_copy.module \content_copy_get_macro()
- 6.3 modules/content_copy/content_copy.module \content_copy_get_macro()
- 6.2 modules/content_copy/content_copy.module \content_copy_get_macro()
Return value
a code representation of the recorded macro.
1 call to content_copy_get_macro()
- content_copy_export in modules/
content_copy/ content_copy.module - Process the export, get field admin forms for all requested fields and save the form values as formatted text.
File
- modules/
content_copy/ content_copy.module, line 527 - Adds capability to import/export CCK field data definitions.
Code
function content_copy_get_macro() {
// Define the indexes for the evaluated code.
$string = "";
if (array_key_exists('submissions', $GLOBALS['content_copy'])) {
foreach ($GLOBALS['content_copy']['submissions'] as $form_type => $form) {
$string .= "\$content[{$form_type}] = " . var_export((array) $form, TRUE) . ";\n";
}
return $string;
}
}