How do I Add Form Field From CCK table to Advanced Search Page

I'm trying to add some new options to the advanced search page that involve field in a CCK table. Specifically, I have a custom content type with a date value. I'd like the Advanced Search to search on all the keywords and return only items from that content type that are within the date range specified by the user on the advanced search page. I can add fields with hook_form_alter(), but I can't figure out how to add statements to the SQL that's running! I want to keep the upgrade path clean and do not want to edit node_search() or do_search().

User Registration Redirect

This seems like an easy question, but I can't find the answer anywhere. I'd like to have the user registration form redirect the the user to the home page after they fill it out, *but* I still want the form to do its regular processing/updating and display the "an e-mail has been sent" message. Changing the #action on the form to '/node' sends the redirect, but eliminates all actual processing from the form (since it just alters the HTML action attribute). How can I make the redirect happen *after* the form is processed?

upgrading to 5.x, but with a twist!

Hey everyone, Ive got a question that is stumping me and would great if someone could try and clear it out for me.

My situation:

I have my 4.7 install on one server, and i have a 5.0 install on another server. I essentially need to export the 4.7 database and import it into the 5.0 version.

Need Help cleaning up BLOCKS section... too many blocks.

I noticed today that I've got about 100 blocks listed in my Admin | Blocks section. They look like they are coming from RSS type feeds, but I can't figure out how they got into my Blocks.

Would it be safe just to remove them from the Blocks table in the dB?

Can anyone tell me how they got their?

They are all "disabled" as of now. They look like this...

Interacting with submissions of any form

I'm trying to make an external newsletter tool, so whenever a user fills out a form made with Webform-module, I should make a function that sends information to the external tool.

So, I know I could just fork the webform-module and it's implementation of hook_submit, but I'm looking for a way to do this by NOT touching anything else than my own module.
Anytime that a form is submitted I would like to run my own code.

Form and JavaScript

Hello

In Drupal form, I can have a text field "foo" like this:

$form['foo'] = array(
  '#type' => 'textfield', 
  '#title' => t('bar'),
  '#default_value' => $object['foo'],
  );

Now I want to use JavaScript so that I can have event such as "onkeyup" event for this textfield

In normal Html, I can do something like

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x