Drupal user functions for angular