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 like to make the contact enable by default for all users, and i want to make a button to contact with the contact user in node post, every node posted by users can have a button with contact in links !
Hello, I would like to allow any user to access: /user/2/contact
ie. The administrator is the only users to use contact forms - the only exception is that anyone can contact the administrator. I have /user/2/contact aliased to /contact and made it accessible as a primary link.
I have tried to customise a couple of _access hooks with no luck. I don't quite understand how to approach this problem.
I'm trying to enhance the printer-friendly print function in book.module. Right now my issue is to remove all the glossary icons from the text. i can remove the glosaary link images ok with a simple replace but it leaves a lot of unseen rubbish in the HTML from the glossary link. Since I want users to be able to use the book text for their own purposes, I'm trying to remove the entire glossary link.
So far i have this $output = preg_replace('#<a href="/\?q=glossary.+glossary\.gif" /></a>#', '', $output );
I need help creating a custom node that pulls info from another database when it displays the node. Basically the user will enter in a few fields into the form, including an MLS # (required field). Then when the user views that node it uses the MLS # to look up the info from another database and joins that information with fields filled out in the node form. Make sense?