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 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:
Hi,
I am fairly new to the Drupal system (but I love it!) except for the handling of images. I noticed that there are a few posts about this topic and I thought that I would share a method that I am using that has worked reasonably well for me.
It requires image_filter to be installed, and uses a user block to generate thumbnails of uploaded images. The block allows you to scroll through a list of the thumbnails and select your image - the image filter tag is generated in the block above the list (you still have to copy and paste it into the relevant text field).