theme_node_recent_content
function theme_node_recent_content
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
File
- modules/node/node.module, line 2393
- The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.module/function/theme_node_recent_content/7.x