1 node.theme.inc theme_node_preview($variables)

Returns HTML for a node preview for display during node creation and editing.

@since 1.0.6 Function removed (see: https://github.com/backdrop/backdrop-issues/issues/218). @since 1.28.0 Function re-added (see: https://github.com/backdrop/backdrop-issues/issues/6129).

Parameters

array $variables: An associative array containing:

  • node_preview: A render element representing the node preview.

See also

node_preview()

node_preview_banner_form()

theme_node_preview_banner_form()

Related topics

File

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

Code

function theme_node_preview($variables) {
  $node_preview = $variables['node_preview'];
  return backdrop_render_children($node_preview);
}