You are here

function ajax_register_block in Ajax Login/Register 6

Same name and namespace in other branches
  1. 6.2 ajax_register.module \ajax_register_block()

File

./ajax_register.module, line 27

Code

function ajax_register_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks[0] = array(
      'info' => t('Ajax login/register'),
    );
    return $blocks;
  }
  if ($op == 'view') {
    if ($delta == 0) {
      $block['subject'] = t('Ajax Login/Register');
      $block['content'] = ajax_get_login_block_content();
      return $block;
    }
  }
}