1.20.x node.theme.inc theme_node_preview_banner_form($variables)

Returns HTML for node_preview_banner_form().

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.

See also

node_preview_banner_form()

Related topics

File

modules/node/node.theme.inc, line 17
Theme functions for the Node module.

Code

function theme_node_preview_banner_form($variables) {
  $form = $variables['form'];

  $output = '<div class="node-preview-banner-form">';
  $output .= '<div class="node-preview-banner-form-actions">';
  $output .= backdrop_render($form['preview_node_submit']);
  $output .= backdrop_render($form['backlink']);
  $output .= '</div>';
  $output .= '<div class="node-preview-banner-form-view-mode">';
  $output .= backdrop_render($form['view_mode']);
  $output .= backdrop_render($form['view_mode_submit']);
  $output .= '</div>';
  $output .= '</div>';

  $output .= backdrop_render_children($form);
  return $output;
}