Don't have time to make a patch right now, and there's some unrelated code in here, but I wanted to document the fix before I forget:

function _node_make_replacements($matches) {

  $node = node_load($matches[1]);
  
  if ($node == FALSE || !node_access('view', $node) || !$node->status) {
    
    return "[[nid:{$matches[1]}]]";

  } // if
  else {

    $node->node_embed_parameters = array();

    if (isset($matches[2]) && trim($matches[2]) != '') {
      parse_str(trim(str_replace(' ', ' ', $matches[2])), $node->node_embed_parameters);
    } // if

    if (!isset($node->node_embed_parameters['view_mode'])) {
      $node->node_embed_parameters['view_mode'] = 'node_embed';
    } // if

    $view = node_view($node, $node->node_embed_parameters['view_mode'], NULL);
    $render = drupal_render($view);

    return $render;

  } // else

} // _node_make_replacements

Comments

mrharolda’s picture

Assigned: Unassigned » mrharolda
Priority: Normal » Major
Issue summary: View changes