Monthly Archives: November 2011

Drupal 7: create random filename

It’s very easy to create a random filename in Drupal. Just re-use the built-in Drupal user_password function: http://api.drupal.org/api/drupal/modules–user–user.module/function/user_password In my case today, I wanted to copy a file from the private:// area to the public:// area because flex was not

Posted in drupal

London

This is my London page. Things to do: http://www.ianvisits.co.uk/ My area is South-West London. I’m a member of Third Door, an amazing co-working space along the river in Wandsworth. http://www.third-door.com/ I organize monthly co-working Fridays for the London Drupal community

Posted in fun

CiviCRM: retrieve CiviCRM Contact from Drupal uid

A first attempt at some code code using the wonderful CiviCRM API version 3. I’m using Drupal 6, and want to retrieve details from CiviCRM relating to the logged in Drupal user. <?php /**  * Implements hook_user().  */ function civicrm_login_message_user($op,

Posted in CiviCRM