This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Overriding node deletion

I want to hide nodes that a user deletes instead of deleting them from the database. The delete hook for my custom node type (from my testing) doesn't seem to be the correct spot to override deletion. I put the following code in my module and the node was still deleted from the database.

making user profile the first thing a user sees when he logs in

I have tried a few times to figure out how to make the user profile view the first page an authenticated user sees when he/she logs in. Any ideas on how I can do this?
Note that I have made my own version of the user profile using the override and the new user_profile.tpl.php.

Help anyone, please...

How to theme form fields in a table?

I want to theme a form so that several fields inside a fieldset appear in tabular form - but what is the best way to do this? I have successfully achieved this effect before by using the form theme function, with code that looks like this:

IMCE: Page can not be displayed

I have installed the IMCE-module ( the TinyMCE0-module is functiomal), but when I try to save the configuration I get the message 'The page cannot be displayed'

Then when I try to assign an IMCE role I get the warnings below:

ecommerce + erp + crm request for suggestions

I've been looking for a while for some software to manage my business but everything I evaluated has fallen short. I've tried a lot of online billing systems (eg http://www.freshbooks.com/) but they're all abroad and thus do not support the European VAT thing. In most of the systems I tried the contact management wasn't really what I wanted either.

When I had my first business I developed my own 'intranet' to manage all that. Two years ago I re-started a small company and am still using that very thing I created 6 years ago, because it does just what I want.

I know have plans to develop a drupal module that:

- can manage companies and their contacts
- allows customers to log in the system to submit tickets/ask questions/view invoices/etc...
- create invoices for those customers

I've looked at the erp (http://drupal.org/project/erp) & ecommerce (http://drupal.org/project/ecommerce) module but neither does what I want. There are some things that could be re-used/extended though. Note that I haven't explored either module fully yet, so I might still find other good ideas in there. I also briefly looked at CiviCrm.

Things in ERP I liked:
- Organic Groups are used on Customers. So you can add all the contacts from one customer in 1 group.

Things I didn't like:
- Contacts are not users and they are not nodes. I would make users contacts and add additional fields with Profile. So every contact can log in.

How do I tell which button has been pressed on a form?

I'm developing a form with the new forms API. The form has two buttons on it, one called 'search' and the other called 'advanced search'. Here is the code for each button:

    $form['search_form']['button'] = array(
	'#type' => 'submit',
	'#value' => t('search'),
	);

    $form['advanced']['button'] = array(
	'#type' => 'submit',
	'#value' => t('advanced search'),
	);

And the HTML generated looks like this:

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions