You are here

function simplesamlphp_auth_block_view in simpleSAMLphp Authentication 7.2

Same name and namespace in other branches
  1. 7.3 simplesamlphp_auth.module \simplesamlphp_auth_block_view()
  2. 7 simplesamlphp_auth.module \simplesamlphp_auth_block_view()

Implements hook_block_view().

File

./simplesamlphp_auth.module, line 507
simpleSAMLphp authentication module for Drupal.

Code

function simplesamlphp_auth_block_view($delta = '') {
  if (!_simplesamlphp_auth_isEnabled()) {

    // Exit without executing.
    return;
  }
  switch ($delta) {
    case 0:
      $block = array(
        'subject' => t('simpleSAMLphp login'),
        'content' => _simplesamlphp_auth_generate_block_text(),
      );
      break;
  }
  return $block;
}