Attached is a patch to make relation_select work with any enitity. Currently it only works with taxonomy term, user, node or comment, while the Relation module works with any entity.

Comments

steveoliver’s picture

Thanks, Jelle_S. Maybe this is just a little more clear?

  foreach (entity_get_info() as $type => $entity) {
    if ($view->base_table == $entity['base table']) {
      return $type;
    }
  }
jelle_s’s picture

Yes, you're right, no need for the variable, it was a left over because I printed it while debugging ;-)

steveoliver’s picture

Status: Needs review » Closed (fixed)

Committed to 7.x-1.x (cb78028). Thanks again, Jelle_S.

jelle_s’s picture

No thanks, thank you for your quick response time!