function theme_node_recent_content

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

1 theme call to theme_node_recent_content()
theme_node_recent_block in modules/node/node.module
Returns HTML for a list of recent content.

File

modules/node/node.module, line 2393

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.