Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm creating a module that is meant to consume an API and create nodes based on the data received. Currently, I just have one long PHP script (650 lines) that creates the config form, processes the data, consumes the API, then create and save the nodes. Since PHP isn't really build to handle long scripts or processes like that, I'm having trouble optimizing my code and avoiding stack overflows. What are some strategies that module developers use to effectively process large amounts of data? Do you write a script in Java or C++, then call the exec() function from the PHP script?
Is it possible to restrict access to certain menus based on a user role?
For example, I created a View (Content) that contains 3 pages (Monday, Tuesday, Wednesday), I have three user roles (Monday, Tuesday, Wednesday)... Is is possible to restrict the "Monday" users to only see the menu "Monday"?
The only problem I have encountered was in the installation of drush, for which I went off script and installed it via Composer. I then reached the end of the installation guide.
I find myself in a conundrum. I have so many user fields that I need to use tabs. If I try to use Field Groups in the User Account form, the module allows me to add the groups, but forces them all to the bottom of the form, below all the fields. If I attach the Profiles module to the User Registration, it handles the field groups correctly, but the Conditional Fields module doesn't work. So, how do I handle this. Is there a workaround? Do I log an issue with the User Account? And, if I do log an issue, how do I do that?