Tagged Questions

1
vote
1answer
59 views

Saving default field values on node_insert

I would like to automatically save a CCK field which will be determined by the data in the $node object. Using node_save in this instance will cause an error so I need a way to simply insert the ...
3
votes
1answer
116 views

Using hook_form_alter() to prevent free email addresses from registering on a Drupal 6 site

I have been tasked with blocking specific email address domians from registering at our Drupal 6 site (gmail.com, aol.com & yahoo.com). I implemented some JQuery code to do this but the problem ...
0
votes
1answer
306 views

How can I hide the primary menu block to certain pages using PHP?

I tried this code to hide the primary menu block from certain pages using the following code: // Only show block from types array and nodes array $match = FALSE; // Which node types $types = ...
0
votes
1answer
53 views

small php script used in drupal module not clear with arrays in php

Here is a small PHP code which I am not clear with. /** * Form for configurable Drupal action to beep multiple times */ function beep_multiple_beep_action_form($context) { $form['beeps'] = array( ...