Answer the question
In order to leave comments, you need to log in
How to add the fivestar widget to a page generated by a native module?
There is a set of simple self-written modules (drupal 7) that work according to the same scheme: generating an input form (form api), processing user data, outputting a result.
It is necessary to add the fivestar widget to the pages with the form and the result, which works through the Voting API and requires the Entity Type and Entity ID of the page from which it is called. It is clear that there are none for a self-written module.
You can create your own entity type (www.drupal.org/node/1026420), but how do you bind it to your modules and distribute the entity type id? This is not the same type of data (messages, comments, nodes), here each case requires its own data processing, instead of a simple output.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question