-
Notifications
You must be signed in to change notification settings - Fork 0
/
drpage.module
33 lines (25 loc) · 990 Bytes
/
drpage.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Implements hook_menu().
*/
function drpage_menu() {
$items['service/data-registry-edit/drpage-page'] = array(
'page callback' => 'drpage_page',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
return $items;
}
function drpage_page() {
$GLOBALS['conf']['cache'] = FALSE; // keep pages out of cache for Shibboleth to work
$output = '
<h2>Data Registry </h2>
<p>Access to this page requires Shibboleth authentication.</p>
<p><a href="/service/data-registry-edit/add">Add Data Registry Content</a></p>
<p><a href="/service/data-registry-edit/update-registry">Edit Your Data Registry Entry</a>
</p><p> </p><h2>Shibboleth Logout</h2>
<p><a href="https://www-auth.library.ucla.edu/Shibboleth.sso/Logout?return=https://shb.ais.ucla.edu/shibboleth-idp/Logout" target="_blank">Shibboleth Logout</a></p>
<p>Use the above link to log out of your Shibboleth session. </p>
<p> </p><p> </p>';
return $output;
}