You are here

function theme_node_convert_conversion_form in Node Convert 7

Same name and namespace in other branches
  1. 5 node_convert.module \theme_node_convert_conversion_form()
  2. 6 node_convert.module \theme_node_convert_conversion_form()

Themes the node conversion form.

File

./node_convert.module, line 208

Code

function theme_node_convert_conversion_form($variables) {
  $form = $variables['form'];
  $output = '';
  if (isset($form['current_type'])) {
    $output .= '<div>' . t("The current node type is:") . '<b>&nbsp;' . drupal_render($form['current_type']) . '</b></div>';
  }

  // If there are no fields to convert, we notify the user
  if (isset($form['no_fields']['#value']) && $form['no_fields']['#value'] == TRUE) {
    $output .= '<div>' . t("There are no fields to convert. Please press Convert.") . '</div>';
  }
  $output .= drupal_render_children($form);
  return $output;
}