You are here

function persistent_login_block in Persistent Login 5

Implementation of hook_block().

WARNING! The Persistent Login debug block is extremely dangerous. It gives away access to every user account on the site that has a persistent login session. Don't use it.

File

./persistent_login_debug.inc, line 10

Code

function persistent_login_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0] = array(
        'info' => t('Persistent Login debug'),
      );
      return $blocks;
    case 'view':
      $block = array(
        'subject' => t('Persistent Login'),
        'content' => _persistent_login_debug(),
      );
      return $block;
  }
}