This patch adds some hooks that would allow using user data from other modules besides profile, if those modules implement the hooks.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | vcard-drupal_alter-with_account_details.20110119.patch | 587 bytes | dman |
| #1 | vcard-hook.patch | 3.02 KB | john morahan |
| vcard-hook.patch | 2.82 KB | john morahan |
Comments
Comment #1
john morahan commentedWrong patch. Sorry. Try this one.
Comment #2
kewlguy commentedAny chance that there would be a 6.X version of this patch?
I wonder if It might solve an issue I have with mapping the vcard fields to the profile fields when the vCard modules 'auto creates' the fields for the 'content profile'.
I would love to be able to use cck and locations with the vcard module. The way I am thinking is that if the module could hook into the location module and some cck fields I would be on my way. I'm just no coder so I am a little helpless in this area.
Comment #3
michaelpporter commentedWhile we have not added location yet we just posted a module for this http://drupal.org/project/cck_vcard not meant to step on this modules function.
Comment #4
sanduhrsYou may now alter the raw vcard data by implementing
hook_vcard_data_alter($data).This is available in both, D6 and D7.
Comment #5
dman commentedhook_vcard_data_alter($data)NICE.
... but ...
there is not quite enough detail to go on there, it gives us the processed vcard fields But hides the actual account information form us!
I can't add anything to it if I still don't know which user account I'm dealing with :-}
How about
So now I can add things (like 'role' based on the Drupal 'role') based on the $account details
Comment #6
dman commentedLike this? Please?
Comment #7
sanduhrsWell, of course you are right!
Commited to DRUPAL-6--1, DRUPAL-7--1.
Thanks.