theme_node_recent_content

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 theme_node_recent_content($variables)

Returns HTML for a recent node to be displayed in the recent content block.

Parameters

$variables An associative array containing:

  • node: A node object.

Related topics

Code

modules/node/node.module, line 2262

<?php
function theme_node_recent_content($variables) {
  $node = $variables['node'];

  $output = '<div class="node-title">';
  $output .= l($node->title, 'node/' . $node->nid);
  $output .= theme('mark', array('type' => node_mark($node->nid, $node->changed)));
  $output .= '</div><div class="node-author">';
  $output .= theme('username', array('account' => user_load($node->uid)));
  $output .= '</div>';

  return $output;
}
?>