MicroID Module
Posted by tanepiper on November 30, 2006 at 6:07pm
Hey fellow Microformatters,
I've been working on a small side-element to Microformats in Drupal and it will be ready to commit to the CVS at some point tommorow.
I have created microid.module, which creates a MicroID hash in the user profile.
At the moment, it's a little hard coded. First off all, there is the function that creates the hash:
<?php
function microid_genhash($email, $url)
{
return sha1(sha1("mailto:" . trim($email)) . sha1(trim($url)));
}
?>
Now, what I do with this is I get $user->email to generate the email part of the hash, thats fine. But for the profile side, I have specified that there must be a field called profile_homepage. The reason for this is that the URL you want to create the hash with should be your homepage, thats how you will be identified.
Read more