Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
content_copy_get_macro()
contributions/cck/modules/content_copy/content_copy.module, line 554
a code representation of the recorded macro.
<?php
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;
}
}
?>