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?
I'm wondering what would be the best way to do the following :
I'm making a site that has no registered users. An option in the menu will give the possibility to change the theme by a single click (actually, it's not the theme, it's only some simple parameter of it)
I'm not experienced enough to guess the best (and simplest) strategy. Should I make a module ? If so, how to make it hooked to urls such as :
I have a custom node type and I want to set the node's title based on other user input or from data in my own db table. It seems to be impossible to do this with the module hooks.
4.7 does include the ability for node titles to be handled by modules but this does not seem to help me. It allows for hook_form() to ask the user for title. That's not what I want. I want to generate the title based on responses to other form items, or by retrieving data from a table. I do not want a title field in my form.