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.
Just wondering if assigning a negative value to the points for a given task in the user points module would have the result of subtracting points from a user? Could I effectively have some actions that allowed users to earn points, like posting to the forums, and some that cost them points like sending an email to the user base.
I am about to write a module which contains a new node type. My problem is that the node creation form always shows the 'title' field and the information about the 'author'. I would like to remove this information from the form but the node type should be searchable usind the core search.module. Can anybody help me in solving this issue?
I inserted a table with [csv unquoted sep=;] and [/csv] around it.
In the post the text is formatted as a table. no problem, everything looks fine.
But, on the front page I show the first 200 characters, and there the html text is also shown (so all the ; and the csv unquoted sep=;] text is shown as regular text.
I have an application where I'd like to assign users to a role programatically, if the user meets some criteria. I am finding this difficult to do, since Drupal appears to be unsetting anything that I set in the users_roles table of the database.
Right now, I use hook_user to add a portion of the user registration/edit screen that deals with the application's user settings. I've put code into the 'validate', 'update' and 'insert' options, but I've tried: