Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding "export" form to entity view #127

Open
shushu opened this issue Dec 31, 2013 · 0 comments
Open

Adding "export" form to entity view #127

shushu opened this issue Dec 31, 2013 · 0 comments

Comments

@shushu
Copy link

shushu commented Dec 31, 2013

To include an export "form" in the best way, I thought we should learn from a similar example - the "add to cart" form in Commerce.

In Commerce they use hook_field_info_alter() to change the default_formatter of a given field to their formatter, and in this formatter they add the form.

http://drupalcontrib.org/api/drupal/contributions!commerce!modules!cart!commerce_cart.module/function/commerce_cart_field_info_alter/7

I think we might want to do it the same way - selecting one field in the biblio entity and change its formatter to include the export form.

@amitaibu do you think this is the right way ? Any other generic way to do so ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant