Hi,
I have a module with several custom node types that can be referenced to each other via nid. How can I prevent deletion of a node that is currently being referenced by another? I tried hook_delete() and hook_nodapi() but was only able to detect the dependency and to warn the user about it. I could use hook_access() for this but would then not be able to change the error message, right?
Thanks in advance for your hints.
Best regards,
Björn
I'm developing a module which works with profile module. I have one category defined and some fields that I add and control via hook_user into the $account variable.
When I access the user view, I get the following error:
warning: Cannot use a scalar value as an array in /var/www/equilibriweb/sites/all/modules/i18n/i18nstrings/i18nstrings.module on line 727
I have a site, where I use apache-solr to search and index the content.
I have certain content types, for example "FAQ". Which contains a textfield for a question and a textfield for an answer.
These faq:s is listed in an faq page, using a view.
When I search the site the search finds faq content, but links them to their node-path.
I want it to link to the faq-page, where all questions is listed.