Index: openidurl.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openidurl/Attic/openidurl.module,v
retrieving revision 1.7.2.10
diff -u -r1.7.2.10 openidurl.module
--- openidurl.module 12 Sep 2008 16:59:45 -0000 1.7.2.10
+++ openidurl.module 12 Sep 2008 17:34:11 -0000
@@ -56,10 +56,15 @@
*/
function _openidurl_set_html_head($server = NULL, $delegate = NULL, $xrds = NULL) {
if (!empty($server) || !empty($delegate)) {
- drupal_set_html_head('');
- drupal_set_html_head('');
- drupal_set_html_head('');
- drupal_set_html_head('');
+ $versions = variable_get('openidurl_version', array(11, 20));
+ if (in_array(11, $versions)) {
+ drupal_set_html_head('');
+ drupal_set_html_head('');
+ }
+ if (in_array(20, $versions)) {
+ drupal_set_html_head('');
+ drupal_set_html_head('');
+ }
}
if (!empty($xrds)) {
drupal_set_html_head('');
Index: openidurl.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openidurl/Attic/openidurl.admin.inc,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 openidurl.admin.inc
--- openidurl.admin.inc 21 Jul 2008 20:51:20 -0000 1.1.2.2
+++ openidurl.admin.inc 12 Sep 2008 17:34:10 -0000
@@ -11,6 +11,17 @@
*/
function openidurl_settings() {
$form = array();
+ $form['openidurl_version'] = array(
+ '#type' => 'checkboxes',
+ '#required' => TRUE,
+ '#title' => t('Version Compatibility'),
+ '#default_value' => variable_get('openidurl_version', array(11, 20)),
+ '#description' => t("Which versions of OpenID compatibility you would like to support."),
+ '#options' => array(
+ 11 => t('1.1'),
+ 20 => t('2.0'),
+ ),
+ );
$form['openidurl_server'] = array(
'#type' => 'textfield',
'#title' => t('OpenID Server'),