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 takes some webform data (from people applying for a climbing course), stores it at session variables (e.g. first name) and then puts it automatically in the appropriate field on the site user registration form if they choose to create an account.
The variables are being stored correctly, however, I'm struggling to set any default value using hook_form_alter. Here is the current code:
I’m trying to make a View showing the title of my nodes and the users who have flagged them (with avatar and some info from their profile_2). My view works, but I cannot its incomplete.
I have made a content type (I have a role) and a Flag that can be used by all users.
In my "Node View", I have:
• Grouping on Content: title (one title with all the users who have flagged)
I have external php scripts that bootstraps Drupal to insert nodes. Access to the folder where the script resides is prevented for a non-authenticated user - however if you know the script name then it seems that anyone could paste the url into a browser and run the script. This seems like a security weakness - what do I need to do to overcome this problem ? Thanks.