You are here

function theme_node_convert_add_template in Node Convert 6

Same name and namespace in other branches
  1. 7 node_convert.module \theme_node_convert_add_template()

File

./node_convert.module, line 449
The node_convert module converts nodes from one type to another.

Code

function theme_node_convert_add_template($form) {
  if ($form['step']['#value'] == "choose_destination_type") {
    $output = '<div>' . t("Choose the source type of the nodes that should be shown, and the destination type to which they will be converted.") . '</div>';
    $output .= drupal_render($form);
  }
  elseif ($form['step']['#value'] == "choose_destination_fields") {
    if ($form['no_fields']['#value'] == TRUE) {
      $output .= '<div>' . t("There are no cck fields to convert. Please press Create.") . '</div>';
    }
    $output .= drupal_render($form);
  }
  return $output;
}