You are here

function user_block_info in Drupal 7

Implements hook_block_info().

File

modules/user/user.module, line 1371
Enables the user registration and login system.

Code

function user_block_info() {
  global $user;
  $blocks['login']['info'] = t('User login');

  // Not worth caching.
  $blocks['login']['cache'] = DRUPAL_NO_CACHE;
  $blocks['new']['info'] = t('Who\'s new');
  $blocks['new']['properties']['administrative'] = TRUE;

  // Too dynamic to cache.
  $blocks['online']['info'] = t('Who\'s online');
  $blocks['online']['cache'] = DRUPAL_NO_CACHE;
  $blocks['online']['properties']['administrative'] = TRUE;
  return $blocks;
}