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

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.

Russian Stemmer

This module implements the Russian stemming algorithm to improve Russian-language
searching with the Drupal built-in search.module.

Stemming attempts to reduce a word to its stem or root form. This generally results in more relevant
results.

Module can be downloaded here: http://www.drupal.ru/files/rustemmer.zip

blocks and files

Hello,

I need to post blocks with attachement files. I'm searching for a module, but i don't find it... Can anyone point me in the right direction? I don't think that is not possible without develop a new module...
(sorry for my english)
Thanks in advance.

New bloginfo module need postgresql help

Last night I committed the bloginfo module. This is a module to add titles and descriptions to blogs like blogger does.

But, I need a little postgresql help to get it right for 4.7 so it can install on mysql or postgresql. Since I don't run postgresql I am not sure of the sql for it. Can someone help me with the postgresql sql?

The mysql part of the install file reads:

Pages

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