Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

content_copy_get_macro

Definition

content_copy_get_macro()
contributions/cck/modules/content_copy/content_copy.module, line 554

Return value

a code representation of the recorded macro.

Code

<?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;
  }
}
?>