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

adding a select field of type multiple to flexinode settings

I have defined a multiple select form field to store configuration settings for each of my two flexinode types. They are stored as variable.

I have used alter_form to add that field. This seems to be working fine. However the selected values are not stored correctly.

It stores the array index instead of array values. Array values are actually the index value for select field.

Here is select field html. I have removed for related info to make it clear.

Og_Forum Categories

I am a fairly new user of Drupal. I noticed that the og_forum module auto populates the Categories->Forums combobox on the forums page with a list of group related categories when trying to add, or edit a forum. I am trying to have it restrict this combobox to only the name of the category for the current group that is selected. For example if I am in a group named "Test" then I would like this combox to list only the "Test" category when trying to edit, or add forums. I am confused about where, or how to implement this functionality?

How to make a form output something other than a message?

Hi everybody,

I am writing a module and a part of it is a form that allows the user to form a query: He or she can choose from some pop-ups the information she wants to view, and on submitting the form, she is going to see the result of the query AND the form again.

How can I achieve something like this with the Drupal-4.7 Forms-API?

What I do is the following: In my module 'test', I register a menu-item with a callback:

Snapshot of Excel spreadheet in Drupal site

I am currently hosting a site on the Intranet for my projects. I have some status spreadsheets in excel .
I was wondering if there is a way to capture snapshots of data from the spreadsheet and display it on the site ?

Or is there a better way for project management using drupal ?

Programming for drupal

I've got a silly question. Can you use any $node->customvar directly? 'Cos I've been looking at some modules' code and they seem to do it.
Also, is there any place where I can find answers to questions like this? A place to learn how to programme for drupal? I know I've got the API but it's kind of a mess and with very little details.

Thanks.

Get my Values after submit

I have got 2 functions one directing to the other.


function form_stage1(){
if ($_POST['op'] == 'Submit') {
return form_stage2();
}

$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Name'),
'#size' => 12,
'#maxlength' => 12,

);
$form['fieldset']['submit'] = array('#type' => 'submit', '#value' => t('Submit'));

return drupal_get_form('form_stage1', $form);
}

Pages

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