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 want to create a website that only accepts invited people' membership.
the invite. module provides an 'Invite a friend' feature but this module is meant to be used when user registration settings have been set to: 'Visitors can create accounts but administrator approval is required'.
i don't want visitors create their accounts though admin approval is required. i want only invited people should apply for membership. and also i wanna see who invited who. is it possible?
I want to add a textfield to the page where a new story is creating. And I can add that textfield to any page with form through xx_form alter funtion. But with little knowledge of php and drupal. I was kind lost when I tried to apply that only to a new story creating page.
Could someone kind enough to explain a little bit of the following code I copied from an example of hook_form_alter function, or provide a url that I can continue my learning? Thanks.
I have content types (such as a node type called "data") that get used by people of various og groups. I do not want to allow a person in group B to edit data nodes that belong to the website but not to a group, so I don't want to grant them edit permission to other people's files. However, I WOULD like to allow a person in group B to be able to edit another data node created by another person in group B.
I have a form in a module of mine which contains mutliple file fields for uploading images. In the HTML they have names of the form edit['images'][0...n], where n is some number I choose. On insert I need each of these to be processed by the image module. This page describes how to do this for one image field, but I'm not sure how to extend this to multiple fields. Any help?
How do I add profile fields to the main account settings page under my account..edit? I am adding a few admin fields that only I adjust for users and I want to add the fields to the main account settings page. Right now if I add a category basically all the user sees is a blank page when they click on that tab which is stupid bc I don't want them to see anything.