It would be cool to have a variable type "entity reference".
I think for most use cases the entity type should be fixed and just the ID needs to be stored.

With rules integration (does this already exist?) and token integration (see token_var.module) this might be the key to a new wonderland.

(It would really cool to have "parametrized types" for this - should we create an issue for that?)

Comments

jose reyero’s picture

I think this variable type (entity reference) should be provided by entity reference module because I guess it will want to reuse part of that module's API.

This module already provides tokens for some variable types so you shouldn't need token_var. (?)

About rules, I don't know

jose reyero’s picture

Project: Variable » Variable Extra
Version: 7.x-2.x-dev »
Issue summary: View changes

Moving to a new project. This should be the place for experimenting with new variable types for contrib modules.