? openidurl-50.patch
? openidurl.info
Index: openidurl.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/openidurl/openidurl.module,v
retrieving revision 1.1
diff -u -r1.1 openidurl.module
--- openidurl.module 5 Dec 2006 22:47:30 -0000 1.1
+++ openidurl.module 11 Dec 2006 23:23:55 -0000
@@ -1,44 +1,48 @@
');
+ drupal_set_html_head('');
+ drupal_set_html_head('');
+ }
+ else {
+ $items = array();
+ $items[] = array(
+ 'path' => 'admin/settings/openidurl',
+ 'title' => t('OpenID URL'),
+ 'callback' => 'drupal_get_form',
+ 'callback arguments' => 'openidurl_settings',
+ 'access' => user_access('administer site configuration'),
+ 'description' => t('Delegate your URL as an OpenID'),
+ );
+ return $items;
}
}
-function openidurl_menu($maycache=NULL)
-{
- if(!$maycache)
- {
- $server = variable_get("openidurl_server","");
- $delegate = variable_get("openidurl_delegate","");
- $xrds = variable_get("openidurl_xrds","");
- drupal_set_html_head('');
drupal_set_html_head('');
drupal_set_html_head('');
- }
-}
-
-function openidurl_settings()
-{
- $form = array();
- $form['openidurl_server'] = array(
- '#type' => 'textfield',
- '#title' => t('OpenID Server'),
- '#default_value' => variable_get('openidurl_server',''),
- '#description' => t("This is the OpenID server. (i.e. http://www.myopenid.com/server)"),
- );
- $form['openidurl_delegate'] = array(
- '#type' => 'textfield',
- '#title' => t('OpenID Delegate'),
- '#default_value' => variable_get('openidurl_delegate',''),
- '#description' => t("This is the OpenID delegate. (i.e. http://yourname.myopenid.com/)"),
- );
- $form['openidurl_xrds'] = array(
- '#type' => 'textfield',
- '#title' => t('OpenID XRDS Location'),
- '#default_value' => variable_get('openidurl_xrds',''),
- '#description' => t("This is the OpenID XRDS location. (i.e. http://yourname.myopenid.com/xrds)"),
- );
- return $form;
+function openidurl_settings() {
+ $form = array();
+ $form['openidurl_server'] = array(
+ '#type' => 'textfield',
+ '#title' => t('OpenID Server'),
+ '#default_value' => variable_get('openidurl_server',''),
+ '#description' => t("This is the OpenID server. (i.e. http://www.myopenid.com/server)"),
+ );
+ $form['openidurl_delegate'] = array(
+ '#type' => 'textfield',
+ '#title' => t('OpenID Delegate'),
+ '#default_value' => variable_get('openidurl_delegate',''),
+ '#description' => t("This is the OpenID delegate. (i.e. http://yourname.myopenid.com/)"),
+ );
+ $form['openidurl_xrds'] = array(
+ '#type' => 'textfield',
+ '#title' => t('OpenID XRDS Location'),
+ '#default_value' => variable_get('openidurl_xrds',''),
+ '#description' => t("This is the OpenID XRDS location. (i.e. http://yourname.myopenid.com/xrds)"),
+ );
+ return system_settings_form($form);
};