danielebarchiesi@0: '_my_discovery_method', danielebarchiesi@0: ); danielebarchiesi@0: } danielebarchiesi@0: danielebarchiesi@0: /** danielebarchiesi@0: * Allow modules to alter discovery methods. danielebarchiesi@0: */ danielebarchiesi@0: function hook_openid_discovery_method_info_alter(&$methods) { danielebarchiesi@0: // Remove XRI discovery scheme. danielebarchiesi@0: unset($methods['xri']); danielebarchiesi@0: } danielebarchiesi@0: danielebarchiesi@0: /** danielebarchiesi@0: * Allow modules to declare OpenID normalization methods. danielebarchiesi@0: * danielebarchiesi@0: * The discovery function callbacks will be called in turn with an unique danielebarchiesi@0: * parameter, the identifier to normalize. They have to return a normalized danielebarchiesi@0: * identifier, or NULL if the identifier is not in a form they can handle. danielebarchiesi@0: * danielebarchiesi@0: * The first normalization method that succeed (return a value that is not NULL) danielebarchiesi@0: * will stop the normalization process. danielebarchiesi@0: * danielebarchiesi@0: * @return danielebarchiesi@0: * An array with a set of function callbacks, that will be called in turn danielebarchiesi@0: * when normalizing an OpenID identifier. The normalization functions have danielebarchiesi@0: * to return a normalized identifier, or NULL if the identifier is not in danielebarchiesi@0: * a form they can handle. danielebarchiesi@0: * @see hook_openid_normalization_method_info_alter() danielebarchiesi@0: */ danielebarchiesi@0: function hook_openid_normalization_method_info() { danielebarchiesi@0: return array( danielebarchiesi@0: 'new_normalization_idea' => '_my_normalization_method', danielebarchiesi@0: ); danielebarchiesi@0: } danielebarchiesi@0: danielebarchiesi@0: /** danielebarchiesi@0: * Allow modules to alter normalization methods. danielebarchiesi@0: */ danielebarchiesi@0: function hook_openid_normalization_method_info_alter(&$methods) { danielebarchiesi@0: // Remove Google IDP normalization. danielebarchiesi@0: unset($methods['google_idp']); danielebarchiesi@0: } danielebarchiesi@0: danielebarchiesi@0: /** danielebarchiesi@0: * @} End of "addtogroup hooks". danielebarchiesi@0: */