Closed (works as designed)
Project:
OpenID Content Profile Field
Version:
6.x-6.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Jun 2009 at 12:49 UTC
Updated:
6 Feb 2013 at 19:06 UTC
See http://groups.drupal.org/node/21357
hook_openid_provider_ax($op, $attributes, $request) and
hook_openid_provider_sreg($op, $sreg_fields, $request)
is too much.
Almost the same signature, almost the same purpose. Let's unify them.
Also in the patchset (depending patches): #488628: Simplify provider-side hooks , #488636: Simplify provider-side hooks in D7 port
| Comment | File | Size | Author |
|---|---|---|---|
| openid_cp_field_union_provider_hooks.patch | 2.54 KB | aron novak |
Comments
Comment #1
aron novakPatchset also includes #489776: Simplify provider-side hooks at OpenID stack
Comment #2
alex_b commentedI'm actually not convinced whether this consolidation is a good idea, here are my reasons:
- the change has only minor benefits in making the code clearer in openid_cp_field, there may be other ways to achieve this.
- there is a certain clarity in linking the hook to a specific invoker module (i. e. sreg invokes an _sreg hook)
- it comes at the cost of patching 4 projects
- it moves against the trend in Drupal to break out $op style hooks into their own hooks
I may be overlooking some aspect here, is there any other issue this patch would be solving?
Comment #3
aron novakThere is no additional benefit on the top of decreasing the number of the hooks at openid stack and making the code a little bit simplier in openid_cp_field.
"it comes at the cost of patching 4 projects" - what are under heavy development
"it moves against the trend in Drupal to break out $op style hooks into their own hooks" - $op is not affected by the patch, anyway, $op is not used really, it can be eliminated.
"there is a certain clarity in linking the hook to a specific invoker module" - agree
Comment #4
xamanu commentedI think it would be fine to do this in the 7.x version. But to keep things simple I would not put this in the 6.x branches. Since this module is not going to be available for D7 we can close this case. But similar things have to be done for the OpenID Profile module. And of course the other modules should have it in the 7.x branches: #488628: Simplify provider-side hooks #488636: Simplify provider-side hooks in D7 port
Comment #5
xamanu commentedClosing