microid

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tanepiper's picture

MicroID Module

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
Subscribe with RSS Syndicate content

Microformats in Drupal

Group organizers

Group categories

Microformats

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: