Custom access control for Drupal 7 entities