function theme_node_recent_block


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 node.module theme_node_recent_block($variables)
cle7 node.module theme_node_recent_block($variables)
elmsmedia7 node.module theme_node_recent_block($variables)
icor7 node.module theme_node_recent_block($variables)
meedjum_blog7 node.module theme_node_recent_block($variables)
mooc7 node.module theme_node_recent_block($variables)

Returns HTML for a list of recent content.


$variables: An associative array containing:

  • nodes: An array of recent node objects.

Related topics

1 theme call to theme_node_recent_block()
node_block_view in modules/node/node.module
Implements hook_block_view().
3 string references to the theme hook from theme_node_recent_block()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

hook_block_view in modules/block/block.api.php
Return a rendered or renderable view of a block.
node_block_view in modules/node/node.module
Implements hook_block_view().
node_theme in modules/node/node.module
Implements hook_theme().


modules/node/node.module, line 2358
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.


function theme_node_recent_block($variables) {
  $rows = array();
  $output = '';

  $l_options = array('query' => drupal_get_destination());
  foreach ($variables['nodes'] as $node) {
    $row = array();
    $row[] = array(
      'data' => theme('node_recent_content', array('node' => $node)),
      'class' => 'title-author',
    $row[] = array(
      'data' => node_access('update', $node) ? l(t('edit'), 'node/' . $node->nid . '/edit', $l_options) : '',
      'class' => 'edit',
    $row[] = array(
      'data' => node_access('delete', $node) ? l(t('delete'), 'node/' . $node->nid . '/delete', $l_options) : '',
      'class' => 'delete',
    $rows[] = $row;

  if ($rows) {
    $output = theme('table', array('rows' => $rows));
    if (user_access('access content overview')) {
      $output .= theme('more_link', array('url' => 'admin/content', 'title' => t('Show more content')));

  return $output;