function openid_connect_block_view in OpenID Connect / OAuth client 7
Implements hook_block_view().
File
- ./
openid_connect.module, line 163 - A pluggable client implementation for the OpenID Connect protocol.
Code
function openid_connect_block_view($delta = '') {
if ($delta == 'openid_connect_login' && user_is_anonymous()) {
module_load_include('inc', 'openid_connect', 'includes/openid_connect.forms');
return array(
'subject' => t('Log in'),
'content' => drupal_get_form('openid_connect_login_form'),
);
}
}