Drupal user fns - copy Coleman's code in

https://github.com/civicrm/civicrm-core/pull/1798/files#r7022773