You are here

function archive_block_view in Archive 7

Same name and namespace in other branches
  1. 7.2 archive.module \archive_block_view()

File

./archive.module, line 205
Implements a block and page showing an archive of all site content.

Code

function archive_block_view($delta = NULL) {
  drupal_add_css(drupal_get_path('module', 'archive') . '/archive.css');
  $block = array(
    'subject' => t('Archives'),
    'content' => theme('archive_block_calendar', array(
      'timestamp' => time(),
    )),
  );
  return $block;
}