Helper functions for Drupal integrations.