Miscellaneous Drupal code