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 have a custom module that stores extra content in a separate table. When I display the page I want to run the content from the table through the html filter the same way as body content is, so line breaks work etc. Right now I'm just collecting the input through a form, and displaying it again through module_view. Can I run the content through the filter in that display part of the module?
I'm wondering how I might go about hacking the Event Modules "upcoming events" block to highlight new events. For example, if an event was added within the last 5 days, have a little "new" added to the Title in the list. This is similar to the way that in the "recent posts" on a Drupal site, you see a red 'new' next to those items that have been added.
Can anyone suggest the code for figuring out the date comparison? I think I can manage the rest, but I'm not sure how to calculate whether an event is less than 5 days old.
I've got a new install. I am setting up Roles, and trying to figure out how to organize content. One of our requirements is to be able to secure content by Role. I haven't seen an obvious way to pull up a node, edit it, and limit access to the node by Role or User. Can someone point me to the proper place to do this or suggest a method?
I'm using andreas09 as the basis for my theme but have noticed that line spaces for a new paragraphs aren't being converted automatically, even when full html is set for the input format.
An example can be seen at http://technohippy.org.uk/waterfalls where the line starting with We've grouped should be a new paragraph and not just a new line.
I can't see anything int he CSS which might do this (in fact I don't even know if it's possible) so am a bit stumped.