You are here

function theme_node_convert_add_template in Node Convert 7

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

Themes the node conversion add template form.

File

./node_convert.module, line 226

Code

function theme_node_convert_add_template($variables) {
  $output = '';
  $form = $variables['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_children($form);
  }
  elseif ($form['step']['#value'] == "choose_destination_fields") {
    $output = '';
    if ($form['no_fields']['#value'] == TRUE) {
      $output .= '<div>' . t("There are no fields to convert. Please press Create.") . '</div>';
    }
    $output .= drupal_render_children($form);
  }
  return $output;
}