You are here

function panels_content_node in Panels 5

Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.

1 string reference to 'panels_content_node'
panels_node_panels_content_types in content_types/node.inc
Callback function to supply a list of content types.

File

content_types/node.inc, line 17

Code

function panels_content_node($conf) {
  $node = node_load($conf['nid']);
  if (!node_access('view', $node)) {
    return;
  }
  if ($conf['suppress_title']) {
    $node->title = '';
  }
  $output = node_view($node, $conf['teaser'], FALSE, $conf['links']);
  return $output;
}