You are here

function content_copy_get_macro in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6.3 modules/content_copy/content_copy.module \content_copy_get_macro()
  2. 6 modules/content_copy/content_copy.module \content_copy_get_macro()
  3. 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 ./content_copy.module
Process the export, get field admin forms for all requested fields and save the form values as formatted text.

File

./content_copy.module, line 644
Adds capability to import/export cck field data definitions.

Code

function content_copy_get_macro() {
  foreach ($GLOBALS['content_copy']['submissions'] as $form_type => $form) {
    $string .= "\$content[{$form_type}]  = " . var_export((array) $form, TRUE) . ";\n";
  }
  return $string;
}