0

My objective is to have a module which gives me the option to create a entity field that can have multiple field values.

For example, the location module. It creates an entity field of type 'location' which can have a set of field values (country, province, city, address, etc.). In the database this module creates a table 'location' which stores all these values with a key 'lid'. The main entity field has a 'lid' value to connect with the set of values. And we are able to used tokens for all these field values.

I have tried Field Collection, Multifiefld, Composed Field modules, but none of those actually do this.

closed as off-topic by kiamlaluno May 19 '16 at 5:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking to recommend or find a book, tool, module, theme, distribution, tutorial, or other off-site resource are off-topic for Drupal Answers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.

2

If the objective is to have one entity field that stores a primary key into a custom table schema, the answer is probably no. Location (and its associated Location CCK module) achieves this by its own widget form (via hook_field_widget_form) & element type (via hook_element_info). It creates various processing functions to store the data in its custom data schema. I think such a module you're describing would need to dynamically generate data schema and hook callbacks to achieve what you're wanting.

  • Yes, you are correct. I am going to develop one. Before that I am making sure that I am not going to waste my time, if there is already one available. – khalid Aug 19 '15 at 2:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.