Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Oualid-EZR on
Hay Guys i want generate a CSV file i create function (generate_contactForm_data()) ho generate my file know i want to associate the function white the menu link if some one can help me plz
thenk you
Comments
You could use Views with
You could use Views with Views Data Export to do this for you. Or at least look at how Views Data Export does it.
https://www.drupal.org/project/views_data_export
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics
thank you for your help
thank you for your help
but I create my own function ho can generate my excel file data :D
So your questions is, how to
So your questions is, how to make the function fire when the user selects a menu link?
Read up on D8's menu routing setup here:
https://www.drupal.org/developing/api/8/menu
This has replaced what used to be callbacks in D7.
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics
CSV Serialization Might do it for you
https://www.drupal.org/project/csv_serialization