You are here

function shib_auth_block in Shibboleth Authentication 6

Same name and namespace in other branches
  1. 5.3 shib_auth.module \shib_auth_block()
  2. 5.2 shib_auth.module \shib_auth_block()
  3. 6.4 shib_auth.module \shib_auth_block()
  4. 6.2 shib_auth.module \shib_auth_block()
  5. 6.3 shib_auth.module \shib_auth_block()

Generate the HTML text for the shib_auth login block

@returns block HTML

Parameters

op the operation from the URL:

delta offset:

File

./shib_auth.module, line 133

Code

function shib_auth_block($op = 'list', $delta = 0, $edit = array()) {

  // listing of blocks, such as on the admin/block page
  switch ($op) {
    case "list":
      $blocks[0] = array(
        'info' => t('Shibboleth authentication'),
        'status' => TRUE,
        'visibility' => 1,
        'weight' => 0,
        'region' => 'left',
      );
      return $blocks;
    case "view":
    default:
      switch ($delta) {
        case 0:
          $block = array(
            'subject' => t('Shibboleth login'),
            'content' => generate_login_text(),
          );
          break;
      }
      return $block;
  }
}