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

module for prevention dos

Hello.
There is a problem:
Some search servers or simply users open to a site many http queries hanging up hosting, apache, mysql, etc...
What module it is possible to limit quantity of inquiries up to one for 10 seconds on one user?
The user it is possible to trace on ID sessions.

Help to find or write.

xinha-nightly is not displaying on content page

Hello
Everybody,
I have problem that i want to use xinha-nightly editor on create content page but it is disable i dont know how but I installed downloaded xinha-nightly again but no change if anyone know please tell

thanks

Category Module Help

Hey guys,

I just noticed the existence of the Category Module. Does anyone have any experience with this? I would love to see an example site of what the Category module is capable of (the official Demo Site doesn't give me a good idea of what the Category Module can do). Anyone have any experience with it?

Thanks,
DSC

form fields: values not populated, but saved well in variables table!?

i need help. the following code is only working partly and i don't understand why. the "test_display" is saved well in variable table and after a reload of the module page the field is filled with the DB data. all ok here...

But if it comes to the "testVar1", this value is saved in variable table, but the field will never populate with the value if i reload the modules page. what is wrong here?

<?php
function test_settings() {

$prefix='test';

$form[$prefix] = array(
'#type' => 'fieldset',
'#title' => t('Global settings'),
'#collapsible' => true,
'#collapsed' => false,
);
$form[$prefix][$prefix.'_display'] = array(
'#type' => 'checkbox',
'#title' => t('enable/disable the test output'),
'#default_value' => variable_get($prefix.'_display', NULL),
'#description' => t('enable/disable the test output'),
);

$properties = array(
$prefix.'_test1' => t('Test 1'),
$prefix.'_test2' => t('Test 2'),
$prefix.'_test3' => t('Test 3'),
);

// Build the form for detailed settings
foreach ($properties as $a => $b) {

$form[$a] = array(
'#type' => 'fieldset',
'#title' => t('Array of properties for '.$b.' link'),
'#collapsible' => true,
'#collapsed' => true,
'#tree' => true,
);
$form[$a]['testVar1'] = array(
'#type' => 'textfield',
'#title' => t('Suboutput Test 1'),

webform cc: transparent to the user

After searching the forums I've found cc: solutions for webform, but these seem to be input the user must put in. In my environment, this needs to be transparent to the user.

The best solution I could think of would be to write a component field and when creating the form, the administrator could create one or multiple hidden cc fields, each containing a recipients address.

That, or being able to add comma seperated email addresses in the Mail Settings, instead of just one.

Insert results of function into a textarea

I need some help. I'd like to insert the results of a function into a textarea. I've tried this:

$form['manual_edit']['text_to_edit'] = array(
      '#type' => 'textarea',
      '#title' => t('Text to Edit'),
      '#default_value' => someFunction(),
      '#required' => FALSE,
      '#rows' => 10,
    );

What I'm looking for is a way to insert the results of 'someFunction()' as the default value of that textarea.

Pages

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